summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-07 13:40:30 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-07 13:42:22 +0200
commit386d1ac49f0e759c3ed7f23f2df86b721a72b9d1 (patch)
treeba6745b0f53613f6ef0345ac88d5a8dba7c139d1 /lib
parentcd4b8dbacd04fc821b14534cb43e301e0d2255f1 (diff)
downloadnextcloud-server-386d1ac49f0e759c3ed7f23f2df86b721a72b9d1.tar.gz
nextcloud-server-386d1ac49f0e759c3ed7f23f2df86b721a72b9d1.zip
Fix setEtagHeader function
Diffstat (limited to 'lib')
-rw-r--r--lib/response.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/response.php b/lib/response.php
index a75135c0176..49d79fda709 100644
--- a/lib/response.php
+++ b/lib/response.php
@@ -111,12 +111,13 @@ class OC_Response {
if (empty($etag)) {
return;
}
+ $etag = '"'.$etag.'"';
if (isset($_SERVER['HTTP_IF_NONE_MATCH']) &&
trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
self::setStatus(self::STATUS_NOT_MODIFIED);
exit;
}
- header('ETag: "'.$etag.'"');
+ header('ETag: '.$etag);
}
/**