Skip to content

Commit

Permalink
Merge pull request #113 from nextcloud/fix/responsetype/204-custom-he…
Browse files Browse the repository at this point in the history
…ader-error
  • Loading branch information
provokateurin authored Apr 9, 2024
2 parents 664743c + abb0e31 commit 5cbbceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public static function resolve(string $context, TypeNode $obj): array {
if ($statusCode === 304) {
$customHeaders = array_filter(array_keys($headers), static fn (string $header) => str_starts_with(strtolower($header), 'x-'));
if (!empty($customHeaders)) {
Logger::error($context, 'Custom headers are not allowed for responses with status code 204 or 304. Found: ' . implode(', ', $customHeaders));
Logger::error($context, 'Custom headers are not allowed for responses with status code 304. Found: ' . implode(', ', $customHeaders));
}
}

Expand Down

0 comments on commit 5cbbceb

Please sign in to comment.