Skip to content

Commit

Permalink
Header values shouldnt be modified
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewolf committed Aug 3, 2016
1 parent c22acdf commit 39484df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qhttpserverconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ QHttpConnectionPrivate::headerField(http_parser*, const char* at, size_t length)
// header names are always lower-cased
ilastRequest->d_func()->iheaders.insert(
itempHeaderField.toLower(),
itempHeaderValue.toLower()
itempHeaderValue
);
// clear header value. this sets up a nice
// feedback loop where the next time
Expand Down Expand Up @@ -143,7 +143,7 @@ QHttpConnectionPrivate::headersComplete(http_parser* parser) {
// Insert last remaining header
ilastRequest->d_func()->iheaders.insert(
itempHeaderField.toLower(),
itempHeaderValue.toLower()
itempHeaderValue
);

// set client information
Expand Down

0 comments on commit 39484df

Please sign in to comment.