diff --git a/test/simulation/test_index_response.cpp b/test/simulation/test_index_response.cpp index 2188830..b23394f 100644 --- a/test/simulation/test_index_response.cpp +++ b/test/simulation/test_index_response.cpp @@ -94,6 +94,7 @@ TEST_CASE ("Index response", "[index][response]") { "CONTENT_LENGTH=", "SERVER_PORT=80", "HTTPS=", + "REQUEST_METHOD=GET", nullptr }; SafeStackObject fake_env(env_raw, "/"); diff --git a/test/unit/test_invalid_utf8_get.cpp b/test/unit/test_invalid_utf8_get.cpp index 987321f..81b322a 100644 --- a/test/unit/test_invalid_utf8_get.cpp +++ b/test/unit/test_invalid_utf8_get.cpp @@ -36,6 +36,7 @@ TEST_CASE ("Retrieve and sanitize invalid an invalid utf-8 text from environment const char* const fake_env[] = { reinterpret_cast(path_info_valid), reinterpret_cast(path_translated_invalid), + "REQUEST_METHOD=GET", nullptr }; diff --git a/test/unit/test_invalid_utf8_post.cpp b/test/unit/test_invalid_utf8_post.cpp index 9581683..df48a16 100644 --- a/test/unit/test_invalid_utf8_post.cpp +++ b/test/unit/test_invalid_utf8_post.cpp @@ -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 };