]> source.dussan.org Git - nextcloud-server.git/commit
Check the actual status code for 204 and 304 15725/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 24 May 2019 11:00:17 +0000 (13:00 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Fri, 24 May 2019 17:52:33 +0000 (17:52 +0000)
commitd0f8fa46194dbcb72222b62dc5d28f5ac38884bb
tree3112d7fc9dbefc9e525a0c75035572566ce5d5bf
parentd6b2aa68473d8aa770a0e29b4453d4ddd7c8923c
Check the actual status code for 204 and 304

The header is the full http header like: HTTP/1.1 304 Not Modified
So comparing this to an int always yields false
This also makes the 304 RFC compliant as the resulting content length
should otherwise be the length of the message and not 0.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/AppFramework/App.php
tests/lib/AppFramework/AppTest.php