1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-27 00:43:47 +00:00

REQUEST_METHOD must be given or better_enums will complain.

This commit is contained in:
King_DuckZ 2017-05-24 22:25:14 +01:00
parent 4e32006e08
commit eef10a3d5e
3 changed files with 3 additions and 0 deletions

View file

@ -94,6 +94,7 @@ TEST_CASE ("Index response", "[index][response]") {
"CONTENT_LENGTH=",
"SERVER_PORT=80",
"HTTPS=",
"REQUEST_METHOD=GET",
nullptr
};
SafeStackObject<tawashi::cgi::Env> fake_env(env_raw, "/");

View file

@ -36,6 +36,7 @@ TEST_CASE ("Retrieve and sanitize invalid an invalid utf-8 text from environment
const char* const fake_env[] = {
reinterpret_cast<const char*>(path_info_valid),
reinterpret_cast<const char*>(path_translated_invalid),
"REQUEST_METHOD=GET",
nullptr
};

View file

@ -52,6 +52,7 @@ TEST_CASE ("Retrieve and sanitize invalid an invalid utf-8 text from POST data",
const char* const fake_env[] = {
content_length.c_str(),
"PATH_INFO=/",
"REQUEST_METHOD=GET",
nullptr
};