[php-src] PR #13515: ext/standard: `request_parse_body` - change invalid content-type header exception to `RequestParseBodyException`
| From: | Ayesh | Date: | Mon, 26 Feb 2024 13:43:59 +0000 |
| Subject: | [php-src] PR #13515: ext/standard: `request_parse_body` - change invalid content-type header exception to `RequestParseBodyException` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25143@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13515
Author: Ayesh
Currently,
request_parse_body function throws an InvalidArgumentException
exception if the request Content-Type header is invalid or of an unknown type such as
application/json.
To make this consistent with other exception conditions, this changes the exception type from
InvalidArgumentException to RequestParseBodyException.