diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-07 13:40:30 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-07 13:42:22 +0200 |
commit | 386d1ac49f0e759c3ed7f23f2df86b721a72b9d1 (patch) | |
tree | ba6745b0f53613f6ef0345ac88d5a8dba7c139d1 /lib | |
parent | cd4b8dbacd04fc821b14534cb43e301e0d2255f1 (diff) | |
download | nextcloud-server-386d1ac49f0e759c3ed7f23f2df86b721a72b9d1.tar.gz nextcloud-server-386d1ac49f0e759c3ed7f23f2df86b721a72b9d1.zip |
Fix setEtagHeader function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/response.php | 3 |
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); } /** |