unit/test
Valentin Bartenev a5dd0f8aa9 Made QUERY_STRING mandatory.
According to CGI/1.1 RFC 3875:

   The server MUST set this variable; if the Script-URI does not include a
   query component, the QUERY_STRING MUST be defined as an empty string ("").

Python's PEP 333(3) allows omitting it in WSGI interface; PHP docs force no
requirements; PSGI and Rack specifications require it even if empty.

When nginx proxies requests over FastCGI, it always provides QUERY_STRING.
and some PHP apps have been observed to fail if it is missing (see issue
#201 on GitHub).

A drawback of this change (besides a small overhead) is that there will be
no easy way to tell a missing query string from an empty one (i.e. requests
with or without the "?" character); yet, it's negligible compared to the
possible benefits of wider application compatibility.

This closes #226 issue on GitHub.
2019-02-28 20:20:41 +03:00
..
go Tests: Go application tests. 2018-06-08 18:32:55 +03:00
java Introducing Java Servlet Container beta. 2019-02-28 18:02:42 +03:00
node Tests: test_node_application_write_before_writeHead reworked. 2018-12-25 16:35:35 +03:00
perl Tests: added test for reading body from IO::Handle-like object. 2019-01-28 17:16:50 +03:00
php Tests: more QUERY_STRING tests. 2018-12-24 20:35:18 +03:00
python Tests: "Host" header tests. 2019-02-27 20:41:30 +03:00
ruby Tests: added tests for SERVER_SOFTWARE variable. 2018-05-21 16:41:33 +03:00
run.py Tests: ignore unexpected successes in return code. 2018-01-24 16:37:56 +03:00
test_access_log.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
test_configuration.py Tests: one more alert skipped in test_json_application_many. 2019-02-20 20:46:23 +03:00
test_go_application.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
test_http_header.py Tests: "Host" header tests. 2019-02-27 20:41:30 +03:00
test_java_application.py Introducing Java Servlet Container beta. 2019-02-28 18:02:42 +03:00
test_node_application.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
test_perl_application.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
test_php_application.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
test_php_basic.py Tests: added command line arguments parsing in tests. 2018-11-15 21:26:15 +03:00
test_python_application.py Made QUERY_STRING mandatory. 2019-02-28 20:20:41 +03:00
test_python_basic.py Tests: added command line arguments parsing in tests. 2018-11-15 21:26:15 +03:00
test_python_environment.py Tests: added command line arguments parsing in tests. 2018-11-15 21:26:15 +03:00
test_python_procman.py Tests: read_timeout option introduced. 2019-02-27 19:43:14 +03:00
test_routing.py Tests: routing. 2019-02-27 19:46:27 +03:00
test_ruby_application.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
test_settings.py Tests: read_timeout option introduced. 2019-02-27 19:43:14 +03:00
test_tls.py Tests: added "Host" and "Connetion" headers where necessary. 2019-02-27 19:15:02 +03:00
unit.py Introducing Java Servlet Container beta. 2019-02-28 18:02:42 +03:00