Browse Source

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

Mikhail Yukseev 1 năm trước cách đây
mục cha
commit
74c64bdd9c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;