Skip to content

Commit c4115cd

Browse files
committed
Include whitespace after header field colons. Resolves #50.
1 parent abd13af commit c4115cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restclient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function execute(string $url, string $method='GET', $parameters=[], array
149149
$headers = array_merge($client->options['headers'], $headers);
150150
foreach($headers as $key => $values){
151151
foreach(is_array($values)? $values : [$values] as $value){
152-
$curlopt[CURLOPT_HTTPHEADER][] = sprintf("%s:%s", $key, $value);
152+
$curlopt[CURLOPT_HTTPHEADER][] = sprintf("%s: %s", $key, $value);
153153
}
154154
}
155155
}

0 commit comments

Comments
 (0)