qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

block/curl: HTTP header field names are case insensitive

RFC 7230 section 3.2 indicates that HTTP header field names are case
insensitive.

Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20200224101310.101169-3-david.edmondson@oracle.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>

authored by

David Edmondson and committed by
Max Reitz
69032253 7788a319

+3 -2
+3 -2
block/curl.c
··· 216 216 size_t realsize = size * nmemb; 217 217 const char *header = (char *)ptr; 218 218 const char *end = header + realsize; 219 - const char *accept_ranges = "Accept-Ranges:"; 219 + const char *accept_ranges = "accept-ranges:"; 220 220 const char *bytes = "bytes"; 221 221 222 222 if (realsize >= strlen(accept_ranges) 223 - && strncmp(header, accept_ranges, strlen(accept_ranges)) == 0) { 223 + && g_ascii_strncasecmp(header, accept_ranges, 224 + strlen(accept_ranges)) == 0) { 224 225 225 226 char *p = strchr(header, ':') + 1; 226 227