<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks Francis, will modify the upstream server</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> nginx <nginx-bounces@nginx.org> on behalf of Francis Daly <francis@daoine.org><br>
<b>Sent:</b> Wednesday, July 3, 2019 12:22 PM<br>
<b>To:</b> nginx@nginx.org<br>
<b>Subject:</b> Re: Nginx 1.17.0 doesn't change the content-type header</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Wed, Jul 03, 2019 at 06:17:46AM +0000, Andrew Andonopoulos wrote:<br>
<br>
Hi there,<br>
<br>
I think that the point is:<br>
<br>
nginx does not change the content-type header from the upstream server.<br>
<br>
If you want your nginx to do that, you have to configure your nginx to<br>
do that -- probably using "add_header".<br>
<br>
> Nginx deliver the file from the cache but the content-type is from<br>
> the default in the HTTP rather than the location in the Server<br>
<br>
The "types" configuration applies when nginx serves a file from the<br>
filesystem.<br>
<br>
If you proxy_pass, nginx does not serve a file from the filesystem.<br>
<br>
The "correct" fix is for you to ensure that your upstream server sends<br>
the content-type header that you want.<br>
<br>
The alternate fix is for you to configure your nginx server to send the<br>
content-type header that you want; you will need to tell nginx how to<br>
know what that header value is, for each response that you make.<br>
<br>
Good luck with it,<br>
<br>
f<br>
-- <br>
Francis Daly francis@daoine.org<br>
_______________________________________________<br>
nginx mailing list<br>
nginx@nginx.org<br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div>
</span></font></div>
</div>
</body>
</html>