Explorar o código

httphandler.cpp fix if-none-match header misspell (#492)

Mikhail Yukseev hai 1 ano
pai
achega
74c64bdd9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      http/server/HttpHandler.cpp

+ 1 - 1
http/server/HttpHandler.cpp

@@ -604,7 +604,7 @@ int HttpHandler::defaultStaticHandler() {
     }
     else {
         // Not Modified
-        auto iter = req->headers.find("if-not-match");
+        auto iter = req->headers.find("if-none-match");
         if (iter != req->headers.end() &&
             strcmp(iter->second.c_str(), fc->etag) == 0) {
             fc = NULL;