You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/resty/http.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -706,7 +706,7 @@ function _M.send_request(self, params)
706
706
headers["Content-Length"] =length
707
707
708
708
elseifbody==nilandEXPECTING_BODY[str_upper(params.method)] then
709
-
headers["Content-Length"] =0
709
+
returnnil, "Request body is nil but " ..str_upper(params.method) .." method expects a body. Use an empty string \"\" if you want to send an empty body."
0 commit comments