Fix sending multiple different content type headers

This commit is contained in:
clerie 2020-10-18 17:48:50 +02:00
parent 751d0c1d97
commit 9a67f67f08
1 changed files with 2 additions and 2 deletions

View File

@ -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';
} }