This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/102822/ |
On October 12th, 2011, 10:58 p.m., Andreas Hartmetz wrote:
kioslave/http/http.cpp (Diff revision 1) endParsing:3107 if (tIt.next().startsWith("timeout=")) { // krazy:exclude=strings3107 QByteArray ka = tIt.next().trimmed().toLower();I guess the parser just lowercases the key ("keep-alive"), not the values. Lowercasing the keys is okay because per the spec they are case-insensitive, and it has the advantage that you can look up keys in more or less constant time when using a hashtable. In many cases the values are case sensitive (usernames, something Base64-encoded for example), so the parser better leaves them alone. So you need to normalize the case yourself.
Small addition: The values are key-value pairs again here, but that isn't universally so in HTTP headers. The header parser simply doesn't know about such details.
- Andreas
On October 10th, 2011, 10:35 p.m., Andrea Iacovitti wrote:
Review request for kdelibs, Andreas Hartmetz and Dawit Alemayehu.
By Andrea Iacovitti.
Updated Oct. 10, 2011, 10:35 p.m. Description
Testing
Diffs
|