fix session cancel issue

This commit is contained in:
Chunting Gu
2021-06-09 15:14:18 +08:00
parent e70863e2bd
commit 12971b7df3
7 changed files with 74 additions and 41 deletions
+2 -1
View File
@@ -109,6 +109,7 @@ const char* const kAuthorization = "Authorization";
const char* const kContentType = "Content-Type";
const char* const kContentLength = "Content-Length";
const char* const kContentEncoding = "Content-Encoding";
const char* const kContentMD5 = "Content-MD5";
const char* const kContentDisposition = "Content-Disposition";
const char* const kConnection = "Connection";
const char* const kTransferEncoding = "Transfer-Encoding";
@@ -168,7 +169,7 @@ public:
};
public:
Error(Code code = kOK, const std::string& message = "")
explicit Error(Code code = kOK, const std::string& message = "")
: code_(code), message_(message), timeout_(false) {
}