diff options
author | Jan Dageförde <jan.dagefoerde@ercis.uni-muenster.de> | 2020-10-24 18:07:10 +0200 |
---|---|---|
committer | Muhammet Kara <mrkara@users.noreply.github.com> | 2020-10-24 21:29:28 +0300 |
commit | 7aae0ddc4fbf9d78fb598df4734ef34edce5fa01 (patch) | |
tree | c71ac00819bfe3739230ff3bab7b88895f3dc6a7 /wsd | |
parent | Add FreeBSD case to autogen.sh (diff) | |
download | online-7aae0ddc4fbf9d78fb598df4734ef34edce5fa01.tar.gz online-7aae0ddc4fbf9d78fb598df4734ef34edce5fa01.zip |
Simplify another Util::getHttpTimeNow() in headers
Change-Id: Ib2718e1dbcff20cd3fa1e6463287ca512f39efc8
Diffstat (limited to 'wsd')
-rw-r--r-- | wsd/LOOLWSD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 77719b474d..da17df54e0 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -2475,7 +2475,7 @@ private: return; } - response->add("Last-Modified", Poco::DateTimeFormatter::format(Poco::Timestamp(), Poco::DateTimeFormat::HTTP_FORMAT)); + response->add("Last-Modified", Util::getHttpTimeNow()); // Ask UAs to block if they detect any XSS attempt response->add("X-XSS-Protection", "1; mode=block"); // No referrer-policy |