[php-src] PR #11275: Fix GH-11274: POST/PATCH request via file_get_contents + stream_context_create switches to GET after a HTTP 308 redirect

From: Date: Fri, 19 May 2023 11:13:33 +0000
Subject: [php-src] PR #11275: Fix GH-11274: POST/PATCH request via file_get_contents + stream_context_create switches to GET after a HTTP 308 redirect
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22538@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11275 Author: nielsdos RFC 7231 states that status code 307 should keep the POST method upon redirect. RFC 7538 does the same for code 308. Although it's not mandated by the RFCs that PATCH is also kept (we can choose), it seems like keeping PATCH will be the most consistent and understandable behaviour. This patch also changes an existing test because it was testing for the wrong behaviour.

« previous php.git-pulls (#22538) next »