summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jacek Roszkowski2020-12-07 01:58:02 +0100
committerGravatar Nikias Bassen2021-11-14 01:06:12 +0100
commit89bd4655d0739c33854e35ca903201f44eeee373 (patch)
treef4222f6481adb1c1e84fb9c89475e4a5a897f6e1
parentd5749b1babcf6ae20badec305b550c46cffde8fa (diff)
downloadlibideviceactivation-89bd4655d0739c33854e35ca903201f44eeee373.tar.gz
libideviceactivation-89bd4655d0739c33854e35ca903201f44eeee373.tar.bz2
Header field names are case-insensitive.
https://tools.ietf.org/html/rfc7230#section-3.2
-rw-r--r--src/activation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activation.c b/src/activation.c
index ff71ef2..9e7115a 100644
--- a/src/activation.c
+++ b/src/activation.c
@@ -602,7 +602,7 @@ static size_t idevice_activation_header_callback(void *data, size_t size, size_t
}
}
if (value) {
- if (strcmp(header, "Content-Type") == 0) {
+ if (strncasecmp(header, "Content-Type", 12) == 0) {
if (strcmp(value, "text/xml") == 0) {
response->content_type = IDEVICE_ACTIVATION_CONTENT_TYPE_PLIST;
} else if (strcmp(value, "application/xml") == 0) {