moonbridge
diff moonbridge_http.lua @ 59:fd0fe0adb203
Do not discard duplicate "Connection: close" header (because other connection options might be set)
author | jbe |
---|---|
date | Tue Mar 24 00:51:13 2015 +0100 (2015-03-24) |
parents | 439eece506ac |
children | 14ef90c46e16 |
line diff
1.1 --- a/moonbridge_http.lua Mon Mar 23 22:16:06 2015 +0100 1.2 +++ b/moonbridge_http.lua Tue Mar 24 00:51:13 2015 +0100 1.3 @@ -437,12 +437,8 @@ 1.4 if output_state == "info_status_sent" then 1.5 error("Cannot set \"Connection: close\" for informational status response") 1.6 end 1.7 - if connection_close_responded then 1.8 - return 1.9 - else 1.10 - connection_close_responded = true 1.11 - break 1.12 - end 1.13 + connection_close_responded = true 1.14 + break 1.15 end 1.16 end 1.17 end