Quote ETag.
This commit is contained in:
parent
3b370022c0
commit
173ca5e3d6
2 changed files with 3 additions and 1 deletions
|
@ -821,7 +821,7 @@ namespace HttpHelper
|
|||
response.set("User-Agent", HTTP_AGENT_STRING);
|
||||
// 60 * 60 * 24 * 128 (days) = 11059200
|
||||
response.set("Cache-Control", "max-age=11059200");
|
||||
response.set("ETag", LOOLWSD_VERSION_HASH);
|
||||
response.set("ETag", "\"" LOOLWSD_VERSION_HASH "\"");
|
||||
|
||||
std::ostringstream oss;
|
||||
response.write(oss);
|
||||
|
|
|
@ -300,6 +300,8 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request, Poco::
|
|||
<< "Date: " << Poco::DateTimeFormatter::format(Poco::Timestamp(), Poco::DateTimeFormat::HTTP_FORMAT) << "\r\n"
|
||||
<< "Last-Modified: " << Poco::DateTimeFormatter::format(Poco::Timestamp(), Poco::DateTimeFormat::HTTP_FORMAT) << "\r\n"
|
||||
<< "User-Agent: LOOLWSD WOPI Agent\r\n"
|
||||
<< "Cache-Control:max-age=11059200\r\n"
|
||||
<< "ETag: \"" LOOLWSD_VERSION_HASH "\"\r\n"
|
||||
<< "Content-Length: " << preprocess.size() << "\r\n"
|
||||
<< "Content-Type: " << mimeType << "\r\n"
|
||||
<< "\r\n"
|
||||
|
|
Loading…
Reference in a new issue