Skip to content

Commit

Permalink
исправил ошибку с искажением тела запроса
Browse files Browse the repository at this point in the history
closes #11
  • Loading branch information
ovcharenko-di committed May 25, 2021
1 parent 1c3c7fb commit 998f276
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf.d/crserver-filter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ server {
# значения этих параметров ОБЯЗАТЕЛЬНО должны быть одинаковыми
# https://github.com/openresty/lua-nginx-module#lua_need_request_body
client_body_buffer_size 2048m;
client_body_timeout 600s;
client_max_body_size 2048m;

rewrite_by_lua_block {

ngx.req.read_body()

local req = ngx.var.request_body
local req = ngx.req.get_body_data()
if req == nil then
return
end
Expand Down

0 comments on commit 998f276

Please sign in to comment.