moonbridge
changeset 197:efd1b4cfd2e9
Set post_params also in case of GET requests
author | jbe |
---|---|
date | Sat Jun 20 00:46:19 2015 +0200 (2015-06-20) |
parents | 281f1ac41fc6 |
children | 6927f8897f71 |
files | moonbridge_http.lua |
line diff
1.1 --- a/moonbridge_http.lua Sat Jun 20 00:14:18 2015 +0200 1.2 +++ b/moonbridge_http.lua Sat Jun 20 00:46:19 2015 +0200 1.3 @@ -553,7 +553,6 @@ 1.4 string.match(content_type, "^application/x%-www%-form%-urlencoded *;") 1.5 then 1.6 read_urlencoded_form(post_params_list, request.body) 1.7 - request.post_params_list, request.post_params = post_params_list, post_params 1.8 else 1.9 local boundary = string.match( 1.10 content_type, 1.11 @@ -703,11 +702,13 @@ 1.12 afterbound = true 1.13 end 1.14 end) 1.15 + return -- finalization is executed in stream handler 1.16 else 1.17 request_error(true, "415 Unsupported Media Type", "Unknown Content-Type of request body") 1.18 end 1.19 end 1.20 end 1.21 + request.post_params_list, request.post_params = post_params_list, post_params 1.22 end 1.23 -- function to prepare body processing: 1.24 local function prepare()