http {
include mime.types;
default_type text/plain;
server{
listen 3001;
server_name localhost;
location /token {
proxy_hide_header Content-Type;
proxy_set_header Content-Type "text/plain; charset=utf-8";
//...//
}
}
}
我发送了Content-Type: application/json
标头,但我想将其替换为text/plain
。我的nginx代码不起作用。我该如何解决?