aboutsummaryrefslogtreecommitdiff
path: root/web/apache/request.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-03-01 19:56:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-03-02 17:34:20 +0300
commit0f9c65e489a7b59f76ccbf2ca6e76ab0a1012932 (patch)
tree4de95bfa0a76b838474176e8bb308e43368353b3 /web/apache/request.cxx
parent4fec7e73201ed50e4a4157cb1ea1f1c63566dd89 (diff)
Fix web server responding with internal server error on POST request with empty body
Diffstat (limited to 'web/apache/request.cxx')
-rw-r--r--web/apache/request.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/apache/request.cxx b/web/apache/request.cxx
index cf3c888..2e03190 100644
--- a/web/apache/request.cxx
+++ b/web/apache/request.cxx
@@ -97,7 +97,7 @@ namespace web
for (auto h (reinterpret_cast<const apr_table_entry_t *> (ha->elts));
n--; ++h)
{
- if (::strcasecmp (h->key, "Cookie") == 0)
+ if (strcasecmp (h->key, "Cookie") == 0)
{
for (const char* n (h->val); n != nullptr; )
{
@@ -136,8 +136,8 @@ namespace web
content (status_code status, const string& type, bool buffer)
{
if (out_ && status == rec_->status && buffer == buffer_ &&
- ::strcasecmp (rec_->content_type ? rec_->content_type : "",
- type.c_str ()) == 0)
+ strcasecmp (rec_->content_type ? rec_->content_type : "",
+ type.c_str ()) == 0)
{
return *out_;
}