1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-07 12:59:45 +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:
King_DuckZ 2017-06-02 09:23:35 +01:00
parent 24baf67a65
commit 2f00014758
9 changed files with 87 additions and 22 deletions

View file

@ -22,6 +22,7 @@
#include "escapist.hpp"
#include "kakoune/safe_ptr.hh"
#include "request_method_type.hpp"
#include "mime_split.hpp"
#include <vector>
#include <string>
#include <boost/utility/string_ref.hpp>
@ -67,6 +68,7 @@ namespace tawashi {
const std::string& server_software() const;
GetMapType query_string_split() const a_pure;
const SplitMime& content_type_split() const a_pure;
std::ostream& print_all (std::ostream& parStream, const char* parNewline) const;
@ -75,6 +77,7 @@ namespace tawashi {
Escapist m_houdini;
std::size_t m_skip_path_info;
RequestMethodType m_request_method_type;
SplitMime m_split_mime;
};
} //namespace cgi
} //namespace tawashi