Skip to content

Commit

Permalink
Header field names are case-insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosz authored and nikias committed Nov 14, 2021
1 parent d5749b1 commit 89bd465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 89bd465

Please sign in to comment.