From 3fc5402b698ece2ab05b4de4488bf13d08b65c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20L=C3=A1szl=C3=B3?= Date: Sun, 7 Jul 2024 21:43:11 +0200 Subject: [PATCH] allow url encoding --- src/rum/http/uri.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rum/http/uri.cpp b/src/rum/http/uri.cpp index 03d2ced..d91360b 100644 --- a/src/rum/http/uri.cpp +++ b/src/rum/http/uri.cpp @@ -33,7 +33,7 @@ URI::operator std::string() const { } URI::URI(const std::string& uri) { - std::regex uri_regex(R"((([\w\d]+):\/\/)?(([\w\d]+)(:([\w\d]+)?)@)?([\w\d\.]+)(:(\d+))?(\/?[\w\d\.\/]+)?(\?([^#]+))?(\#([\w\d]*))?)"); + std::regex uri_regex(R"((([\w\d]+):\/\/)?(([\w\d]+)(:([\w\d]+)?)@)?([\w\d\.]+)(:(\d+))?(\/?[\w\d%\.\/]+)?(\?([^#]+))?(\#([\w\d]*))?)"); std::smatch match;