From bb702c6589a9be1872e8098c4367232991873a6d Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sat, 27 Apr 2013 13:15:41 -0500 Subject: [PATCH] update URI to be able to store and manipulate HTTP URIs --- websocketpp/uri.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocketpp/uri.hpp b/websocketpp/uri.hpp index 039f56c00a..14ca9cd0de 100644 --- a/websocketpp/uri.hpp +++ b/websocketpp/uri.hpp @@ -63,7 +63,7 @@ public: explicit uri(const std::string& uri) { // TODO: should this split resource into path/query? lib::cmatch matches; - const lib::regex expression("(ws|wss)://([^/:\\[]+|\\[[0-9a-fA-F:.]+\\])(:\\d{1,5})?(/[^#]*)?"); + const lib::regex expression("(http|ws|wss)://([^/:\\[]+|\\[[0-9a-fA-F:.]+\\])(:\\d{1,5})?(/[^#]*)?"); if (lib::regex_match(uri.c_str(), matches, expression)) { m_secure = (matches[1] == "wss");