nginx 不接受 POST 表单数据

nginx not accepting POST form data

当我POST使用这个

服务器
POST /api/user/login HTTP/1.1
Host: xxxx.com
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded

它有效,但不是这个

POST /api/user/login HTTP/1.1
Host: xxxx.com
Cache-Control: no-cache

第一个能成功吗?

他们都在工作,阻碍我的是

error_page 500 502 503 504 /50x.html;
location = /50x.html {
   root /usr/share/nginx/html;
}

我更改了这些行,以便我的应用程序可以处理 500 502 503 504 错误。

现在删除了这些行并按预期工作。可能会对某人有所帮助