mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-07-02 14:04:16 +00:00
Fail if CONTENT_TYPE is not application/x-www-form-urlencoded.
As part of the partial improvement to the POST reading code I also added a max_post_size setting which defaults to 1 MiB. POST inputs longer than that size get truncated. This is separate to max_pastie_size, which is just the size of one of the values in the POST data.
This commit is contained in:
parent
24baf67a65
commit
2f00014758
9 changed files with 87 additions and 22 deletions
|
@ -53,6 +53,7 @@ TEST_CASE ("Retrieve and sanitize invalid an invalid utf-8 text from POST data",
|
|||
content_length.c_str(),
|
||||
"PATH_INFO=/",
|
||||
"REQUEST_METHOD=GET",
|
||||
"CONTENT_TYPE=application/x-www-form-urlencoded",
|
||||
nullptr
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue