Fix sending multiple different content type headers
This commit is contained in:
parent
751d0c1d97
commit
9a67f67f08
@ -19,7 +19,7 @@ server {
|
|||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Content-Type text/html;
|
types { } default_type "text/html; charset=utf-8";
|
||||||
return 200 '
|
return 200 '
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@ -79,7 +79,7 @@ server {
|
|||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Content-Type text/plain;
|
types { } default_type "text/plain; charset=utf-8";
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
return 200 '$remote_addr\n';
|
return 200 '$remote_addr\n';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user