Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
fix header name 0
Browse files Browse the repository at this point in the history
  • Loading branch information
SQKo committed Apr 16, 2022
1 parent 8087ddd commit d45ea9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Discord/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,10 @@ public function runCgi()

$this->handleRequest($serverRequest)->then(function (Response $response) {
foreach ($response->getHeaders() as $name => $values) {
foreach ($values as $value) {
header(sprintf('%s: %s', $name, $value), false);
if ($name) {
foreach ($values as $value) {
header(sprintf('%s: %s', $name, $value), false);
}
}
}
http_response_code($response->getStatusCode());
Expand Down

0 comments on commit d45ea9f

Please sign in to comment.