Skip to content

Commit 318b9eb

Browse files
authored
Merge pull request #259 from ankadada/master
make http response header words in title case
2 parents 34aba14 + 6857bb6 commit 318b9eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Qiniu/Http/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ private static function parseHeaders($raw)
129129
$headerLine = trim($line);
130130
$kv = explode(':', $headerLine);
131131
if (count($kv) > 1) {
132+
$kv[0] = ucwords($kv[0], '-');
132133
$headers[$kv[0]] = trim($kv[1]);
133134
}
134135
}

0 commit comments

Comments
 (0)