moonbridge
changeset 28:0a9abf36e07b v0.2.1
Bug in request:finish() method of HTTP module fixed, which caused body-less responses to cause an error
author | jbe |
---|---|
date | Fri Jan 30 15:16:34 2015 +0100 (2015-01-30) |
parents | 82987fca10e6 |
children | 41160dd94b11 |
files | moonbridge_http.lua |
line diff
1.1 --- a/moonbridge_http.lua Fri Jan 30 12:09:23 2015 +0100 1.2 +++ b/moonbridge_http.lua Fri Jan 30 15:16:34 2015 +0100 1.3 @@ -414,7 +414,7 @@ 1.4 finish_response() 1.5 end 1.6 output_state = "finished" 1.7 - elseif output_state ~= finished then 1.8 + elseif output_state ~= "finished" then 1.9 error("Unexpected internal status in HTTP engine") 1.10 end 1.11 end,