summaryrefslogtreecommitdiffstats
path: root/wsd
diff options
context:
space:
mode:
authorJan Dageförde <jan.dagefoerde@ercis.uni-muenster.de>2020-10-24 18:07:10 +0200
committerMuhammet Kara <mrkara@users.noreply.github.com>2020-10-24 21:29:28 +0300
commit7aae0ddc4fbf9d78fb598df4734ef34edce5fa01 (patch)
treec71ac00819bfe3739230ff3bab7b88895f3dc6a7 /wsd
parentAdd FreeBSD case to autogen.sh (diff)
downloadonline-7aae0ddc4fbf9d78fb598df4734ef34edce5fa01.tar.gz
online-7aae0ddc4fbf9d78fb598df4734ef34edce5fa01.zip
Simplify another Util::getHttpTimeNow() in headers
Change-Id: Ib2718e1dbcff20cd3fa1e6463287ca512f39efc8
Diffstat (limited to 'wsd')
-rw-r--r--wsd/LOOLWSD.cpp2
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