From 0f9c65e489a7b59f76ccbf2ca6e76ab0a1012932 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 1 Mar 2016 19:56:02 +0300 Subject: Fix web server responding with internal server error on POST request with empty body --- web/apache/request.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/apache/request.cxx') 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 (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_; } -- cgit v1.1