From eef10a3d5e2e3c3aaf6571191349c73a6c0facf8 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 24 May 2017 22:25:14 +0100 Subject: [PATCH] REQUEST_METHOD must be given or better_enums will complain. --- test/simulation/test_index_response.cpp | 1 + test/unit/test_invalid_utf8_get.cpp | 1 + test/unit/test_invalid_utf8_post.cpp | 1 + 3 files changed, 3 insertions(+) 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 };