diff --git a/doc/admin-guide/files/records.config.en.rst b/doc/admin-guide/files/records.config.en.rst index f0db7f8f72b..fc920154317 100644 --- a/doc/admin-guide/files/records.config.en.rst +++ b/doc/admin-guide/files/records.config.en.rst @@ -1134,7 +1134,7 @@ mptcp An arbitrary string value that, if set, will be used to replace any request ``User-Agent`` header. -.. ts:cv:: CONFIG proxy.config.http.strict_uri_parsing INT 0 +.. ts:cv:: CONFIG proxy.config.http.strict_uri_parsing INT 2 Takes a value between 0 and 2. ``0`` disables strict_uri_parsing. Any character can appears in the URI. ``1`` causes |TS| to return 400 Bad Request diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc index 967dc6c3cc0..5c00cde2225 100644 --- a/mgmt/RecordsConfig.cc +++ b/mgmt/RecordsConfig.cc @@ -354,7 +354,7 @@ static const RecordElement RecordsConfig[] = , {RECT_CONFIG, "proxy.config.http.post.check.content_length.enabled", RECD_INT, "1", RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-1]", RECA_NULL} , - {RECT_CONFIG, "proxy.config.http.strict_uri_parsing", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-2]", RECA_NULL} + {RECT_CONFIG, "proxy.config.http.strict_uri_parsing", RECD_INT, "2", RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-2]", RECA_NULL} , // # Send http11 requests // # diff --git a/proxy/http/HttpConfig.h b/proxy/http/HttpConfig.h index 4b46b75d29c..5334bcff5ea 100644 --- a/proxy/http/HttpConfig.h +++ b/proxy/http/HttpConfig.h @@ -848,7 +848,7 @@ struct HttpConfigParams : public ConfigInfo { MgmtByte referer_filter_enabled = 0; MgmtByte referer_format_redirect = 0; - MgmtByte strict_uri_parsing = 0; + MgmtByte strict_uri_parsing = 2; MgmtByte reverse_proxy_enabled = 0; MgmtByte url_remap_required = 1;