From: Bart Visscher Date: Fri, 7 Sep 2012 11:40:30 +0000 (+0200) Subject: Fix setEtagHeader function X-Git-Tag: v4.5.0beta3~8^2~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=386d1ac49f0e759c3ed7f23f2df86b721a72b9d1;p=nextcloud-server.git Fix setEtagHeader function --- 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); } /**