Skip to content

Commit 6857bb6

Browse files
committed
add ucwords
1 parent 34aba14 commit 6857bb6

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)