aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/box/boxtokenrefresher.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2019-08-25 14:02:02 +0700
committerFilippos Karapetis2019-08-25 12:15:14 +0300
commit24b1ec0dedf31097396741aa811dfabf9335b397 (patch)
treeba2e9c4c387aa953cd09fe6534bf4712526396be /backends/cloud/box/boxtokenrefresher.cpp
parent0c479251c794f536c9bcaf18c2ce10fcb1537be2 (diff)
downloadscummvm-rg350-24b1ec0dedf31097396741aa811dfabf9335b397.tar.gz
scummvm-rg350-24b1ec0dedf31097396741aa811dfabf9335b397.tar.bz2
scummvm-rg350-24b1ec0dedf31097396741aa811dfabf9335b397.zip
CLOUD: Handle HTTP response headers case-insensitively
RFC 2616 states that HTTP headers are not case-sensitive and also allows arbitrary number of whitespace characters around header value. Previous implementation was dependant on headers to be in "Title-Case" and to have only one space before header value. That has lead to cloud sync failure on Debian x64 (user's network environment was probably the reason though). This commit adds a new method, which parses headers name-value pairs into HashMap. To ensure case-insensitivity, all headers names are converted to lowercase, and thus code that uses this method should specify headers in lowercase. All usages of raw headers contents were updated to use this method.
Diffstat (limited to 'backends/cloud/box/boxtokenrefresher.cpp')
0 files changed, 0 insertions, 0 deletions