diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-30 19:20:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-06 20:34:25 +0200 |
commit | 8e866579cb459c5104c532d5e41d562d45236ea5 (patch) | |
tree | f72548e3499bfdc50bc1183ec014d14e6b53918c /web/apache/request.cxx | |
parent | c188831c50456754de79aadc26df74149cb00422 (diff) |
Implement loader
Diffstat (limited to 'web/apache/request.cxx')
-rw-r--r-- | web/apache/request.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/apache/request.cxx b/web/apache/request.cxx index f89f0e7..7727b35 100644 --- a/web/apache/request.cxx +++ b/web/apache/request.cxx @@ -15,9 +15,9 @@ #include <sstream> #include <ostream> #include <cstring> +#include <utility> // move() #include <stdexcept> #include <streambuf> -#include <algorithm> // move() using namespace std; @@ -80,7 +80,7 @@ namespace web for (auto h (reinterpret_cast<const apr_table_entry_t *> (ha->elts)); n--; ++h) { - if (!::strcasecmp (h->key, "Cookie")) + if (::strcasecmp (h->key, "Cookie") == 0) { for (const char* n (h->val); n != 0; ) { @@ -121,8 +121,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 ())) + ::strcasecmp (rec_->content_type ? rec_->content_type : "", + type.c_str ()) == 0) { return *out_; } |