From e8fba960a1866d0370b20ee0e120d64c4f05f67e Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Fri, 15 Apr 2016 18:02:21 -0400 Subject: Fix preservation of headers when returning blobs --- src/c/urweb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c/urweb.c') diff --git a/src/c/urweb.c b/src/c/urweb.c index 51a122d0..7e535122 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -3941,7 +3941,7 @@ static char *old_headers(uw_context ctx) { if (strncasecmp(ctx->outHeaders.start, "Content-type: ", 14)) { s = strchr(ctx->outHeaders.start, '\n'); - is_good = strncasecmp(s+1, "Content-type: ", 14); + is_good = !strncasecmp(s+1, "Content-type: ", 14); } else { s = ctx->outHeaders.start; is_good = 1; -- cgit v1.2.3