mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Update phpDoc of the content type JSON regex and fix the regex delimiter
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Stanimir Bozhilov <stanimir.bozhilov.1998@gmail.com>
This commit is contained in:
parent
b44befa881
commit
ca39261342
1 changed files with 2 additions and 1 deletions
|
|
@ -99,8 +99,9 @@ interface IRequest {
|
|||
|
||||
/**
|
||||
* @var string
|
||||
* @since 26.0.0
|
||||
*/
|
||||
public const JSON_CONTENT_TYPE_REGEX = '{^application/(?:[a-z0-9.-]+\+)?json\b}';
|
||||
public const JSON_CONTENT_TYPE_REGEX = '/^application\/(?:[a-z0-9.-]+\+)?json\b/';
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
|
|
|
|||
Loading…
Reference in a new issue