Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/admin-guide/files/records.config.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mgmt/RecordsConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
// #
Expand Down
2 changes: 1 addition & 1 deletion proxy/http/HttpConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down