diff options
author | Alexander Tkachev | 2019-08-25 14:02:02 +0700 |
---|---|---|
committer | Filippos Karapetis | 2019-08-25 12:15:14 +0300 |
commit | 24b1ec0dedf31097396741aa811dfabf9335b397 (patch) | |
tree | ba2e9c4c387aa953cd09fe6534bf4712526396be /backends/cloud/onedrive | |
parent | 0c479251c794f536c9bcaf18c2ce10fcb1537be2 (diff) | |
download | scummvm-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/onedrive')
0 files changed, 0 insertions, 0 deletions