Permalink
Browse files

Keep-Alive is now correctly formatted in error messsages' headers

  • Loading branch information...
1 parent 59a72fd commit aa46bc5de77b75018886c0d5b40aa8044e6cc9a0 @ostinelli committed Jan 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/misultin_http.erl
View
@@ -122,7 +122,7 @@ build_error_message(HttpCode, Req, TableDateRef, AccessLogFun, MessageBody) ->
% building body
Body = build_error_message_body(HttpCode, MessageBody),
% build headers
- Headers = [{'Content-Length', erlang:iolist_size(Body)}, {'Connection', Req#req.connection}],
+ Headers = [{'Content-Length', erlang:iolist_size(Body)}, {'Connection', connection_str(Req#req.connection)}],
Enc_headers = enc_headers(Headers),
% info log
build_access_log(Req, HttpCode, 0, TableDateRef, AccessLogFun),

0 comments on commit aa46bc5

Please sign in to comment.