@@ -96,11 +96,11 @@ |
||
96 | 96 | if ($request->hasHeader('If-Match')) { |
97 | 97 | foreach($requested->gethHeader('if-match') as $expectedEtag) { |
98 | 98 | $expectedEtag = trim($expectedEtag, '"'); |
99 | - if($expectedEtag !== $item['etag']){ |
|
100 | - return new Response(412); |
|
101 | - } |
|
99 | + if($expectedEtag !== $item['etag']){ |
|
100 | + return new Response(412); |
|
101 | + } |
|
102 | + } |
|
102 | 103 | } |
103 | - } |
|
104 | 104 | |
105 | 105 | $response = (new Response(200))-> |
106 | 106 | withBody(stream_for($item['contents']))-> |