From 89bd4655d0739c33854e35ca903201f44eeee373 Mon Sep 17 00:00:00 2001 From: Jacek Roszkowski Date: Mon, 7 Dec 2020 01:58:02 +0100 Subject: Header field names are case-insensitive. https://tools.ietf.org/html/rfc7230#section-3.2 --- src/activation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.1-32-gdbae