From 22a4dcf98785f88edc589a8b9424ddd289f2eaaf Mon Sep 17 00:00:00 2001 From: Wilson Li Date: Mon, 15 Jun 2015 17:37:28 +0900 Subject: [PATCH] Capital "Content-Length" in reply Header --- src/cowboy_req.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index 981b32198..99c3849e3 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -866,7 +866,7 @@ reply(Status, Headers, Body, Req=#http_req{ %% We stream the response body for ContentLength bytes. RespConn = response_connection(Headers, Connection), {RespType, Req2} = response(Status, Headers, RespHeaders, [ - {<<"content-length">>, integer_to_list(ContentLength)}, + {<<"Content-Length">>, integer_to_list(ContentLength)}, {<<"date">>, cowboy_clock:rfc1123()}, {<<"server">>, <<"Cowboy">>} |HTTP11Headers], stream, Req),