comparison src/http/ngx_http_request.h @ 7881:52338ddf9e2f

Disabled spaces in URIs (ticket #196). From now on, requests with spaces in URIs are immediately rejected rather than allowed. Spaces were allowed in 31e9677b15a1 (0.8.41) to handle bad clients. It is believed that now this behaviour causes more harm than good.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 28 Jun 2021 18:01:13 +0300
parents 63c66b7cc07c
children 185c86b830ef 6674a50cbb6c
comparison
equal deleted inserted replaced
7880:dfd8dfb436e5 7881:52338ddf9e2f
465 /* URI with "%" */ 465 /* URI with "%" */
466 unsigned quoted_uri:1; 466 unsigned quoted_uri:1;
467 467
468 /* URI with "+" */ 468 /* URI with "+" */
469 unsigned plus_in_uri:1; 469 unsigned plus_in_uri:1;
470
471 /* URI with " " */
472 unsigned space_in_uri:1;
473 470
474 /* URI with empty path */ 471 /* URI with empty path */
475 unsigned empty_path_in_uri:1; 472 unsigned empty_path_in_uri:1;
476 473
477 unsigned invalid_header:1; 474 unsigned invalid_header:1;