]> xenbits.xensource.com Git - qemu-xen.git/commit
block/curl: rewrite http header parsing function
authorMichael Tokarev <mjt@tls.msk.ru>
Sat, 29 Jun 2024 13:27:00 +0000 (16:27 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 17 Jul 2024 11:04:15 +0000 (14:04 +0300)
commit2abc22e63943371128990e4dffcf8d1f7d44c10f
tree787be7737fbbcfc25b12f3914121d49e5eef121d
parente2f346aa98646e84eabe0256f89d08e89b1837cf
block/curl: rewrite http header parsing function

Existing code was long, unclear and twisty.

This also relaxes the rules a tiny bit: allows to have
whitespace before header name and colon and makes the
header value match to be case-insensitive.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/curl.c