Lowercase only header keys, not values. Fixes #572

This commit is contained in:
Łukasz Mierzwa
2014-03-16 23:43:28 +01:00
parent 930f71c562
commit 2bba4cf15a
+1
View File
@@ -192,6 +192,7 @@ struct uwsgi_buffer *spdy_http_to_spdy(char *buf, size_t len, uint32_t *hh) {
// tolower !!!
size_t j;
for(j=0;j<h_len;j++) {
if (key[j] == ':') break;
key[j] = tolower((int) key[j]);
}
if (uwsgi_buffer_append_keyval32(ub, key, colon-key, colon+2, h_len-((colon-key)+2))) goto end;