Add Header Using the Nginx add_header directive can lead to duplicate header entries.
Consider the following configuration file:
server { ... location = /ok { add_header Content-Type application/json; return 200 '{"result":"ok"}'; } } For me this resulted in the following response: