r5048 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Thu Jul 15 12:42:54 CEST 2010


Author: phk
Date: 2010-07-15 12:42:54 +0200 (Thu, 15 Jul 2010)
New Revision: 5048

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Make Expect 100-continue test case-insensitive

Candidate for merging into 2.1 branch



Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2010-07-13 11:07:00 UTC (rev 5047)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2010-07-15 10:42:54 UTC (rev 5048)
@@ -1149,7 +1149,7 @@
 	 * Handle Expect headers
 	 */
 	if (http_GetHdr(sp->http, H_Expect, &p)) {
-		if (strcmp(p, "100-continue")) {
+		if (strcasecmp(p, "100-continue")) {
 			sp->err_code = 417;
 			sp->step = STP_ERROR;
 			return (0);




More information about the varnish-commit mailing list