diff --git a/doc/admin-guide/files/records.config.en.rst b/doc/admin-guide/files/records.config.en.rst index 21792a3317c..733a11e511e 100644 --- a/doc/admin-guide/files/records.config.en.rst +++ b/doc/admin-guide/files/records.config.en.rst @@ -1249,7 +1249,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 88e19f53cbc..21a8ff90455 100644 --- a/mgmt/RecordsConfig.cc +++ b/mgmt/RecordsConfig.cc @@ -362,7 +362,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 eed48015d34..145fffe10fd 100644 --- a/proxy/http/HttpConfig.h +++ b/proxy/http/HttpConfig.h @@ -824,7 +824,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;