# HG changeset patch # User jbe # Date 1434753979 -7200 # Node ID efd1b4cfd2e9a85fe4391709b2fc5f951b937538 # Parent 281f1ac41fc68d7c4d6f518cc7d845e13757ce84 Set post_params also in case of GET requests diff -r 281f1ac41fc6 -r efd1b4cfd2e9 moonbridge_http.lua --- a/moonbridge_http.lua Sat Jun 20 00:14:18 2015 +0200 +++ b/moonbridge_http.lua Sat Jun 20 00:46:19 2015 +0200 @@ -553,7 +553,6 @@ string.match(content_type, "^application/x%-www%-form%-urlencoded *;") then read_urlencoded_form(post_params_list, request.body) - request.post_params_list, request.post_params = post_params_list, post_params else local boundary = string.match( content_type, @@ -703,11 +702,13 @@ afterbound = true end end) + return -- finalization is executed in stream handler else request_error(true, "415 Unsupported Media Type", "Unknown Content-Type of request body") end end end + request.post_params_list, request.post_params = post_params_list, post_params end -- function to prepare body processing: local function prepare()