Przeglądaj źródła

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

Mikhail Yukseev 1 rok temu
rodzic
commit
74c64bdd9c
1 zmienionych plików z 1 dodań i 1 usunięć
  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;