Prechádzať zdrojové kódy

HV_EXPORT HttpCookie

hewei.it 4 rokov pred
rodič
commit
ca06ba02fa
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      http/HttpMessage.h

+ 2 - 1
http/HttpMessage.h

@@ -52,7 +52,7 @@ struct HNetAddr {
 };
 
 // Cookie: sessionid=1; domain=.example.com; path=/; max-age=86400; secure; httponly
-struct HttpCookie {
+struct HV_EXPORT HttpCookie {
     std::string name;
     std::string value;
     std::string domain;
@@ -373,6 +373,7 @@ public:
         auto iter = headers.find("Content-Range");
         if (iter != headers.end()) {
             sscanf(iter->second.c_str(), "bytes %ld-%ld/%ld", &from, &to, &total);
+            return true;
         }
         from = to = total = 0;
         return false;