[master] aa8f6a1 Copy&Paste error: Also check for lower-case 'http' in protocol.
Poul-Henning Kamp
phk at FreeBSD.org
Wed Jun 14 23:12:11 CEST 2017
commit aa8f6a1b9828677a35919fe447da7c2622064592
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Jun 14 21:11:00 2017 +0000
Copy&Paste error: Also check for lower-case 'http' in protocol.
Spotted by: @jambon69
diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index 62d98bd..9be4805 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -213,9 +213,9 @@ http_Proto(struct http *to)
fm = to->hd[HTTP_HDR_PROTO].b;
if ((fm[0] == 'H' || fm[0] == 'h') &&
- (fm[1] == 'T' || fm[0] == 't') &&
- (fm[2] == 'T' || fm[0] == 't') &&
- (fm[3] == 'P' || fm[0] == 'p') &&
+ (fm[1] == 'T' || fm[1] == 't') &&
+ (fm[2] == 'T' || fm[2] == 't') &&
+ (fm[3] == 'P' || fm[3] == 'p') &&
fm[4] == '/' &&
vct_isdigit(fm[5]) &&
fm[6] == '.' &&
More information about the varnish-commit
mailing list