Преглед на файлове

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

Mikhail Yukseev преди 1 година
родител
ревизия
74c64bdd9c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;