locale independent http date header

This commit is contained in:
Chunting Gu
2020-08-18 11:34:34 +08:00
parent 427c46a65a
commit 12e3569a83
4 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const std::string& UserAgent();
// Get the timestamp for HTTP Date header field.
// E.g., Wed, 21 Oct 2015 07:28:00 GMT
// See: https://tools.ietf.org/html/rfc7231#section-7.1.1.2
std::string GetTimestamp();
std::string HttpDate();
// Tell the size in bytes of the given file.
// Return kInvalidLength (-1) on failure.