mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-11-23 00:33:44 +00:00
REQUEST_METHOD must be given or better_enums will complain.
This commit is contained in:
parent
4e32006e08
commit
eef10a3d5e
3 changed files with 3 additions and 0 deletions
|
@ -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, "/");
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue