<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Associating types to file extensions is done through the <span style="font-family:monospace,monospace"><a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#types">types</a></span> directive.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">You probably have a <span style="font-family:monospace,monospace"><a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#default_type">default_type</a></span> directive in a global location defining it to <span style="font-family:monospace,monospace">application/octet-stream</span>.<br></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Thu, Oct 20, 2016 at 5:06 PM, shang yu <span dir="ltr"><<a href="mailto:yushang@outlook.com" target="_blank">yushang@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-859916738878193444divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi dear all,</p>
<p>When I GET a xlsx file from nginx server , the response header Content-Type is <span>application/octet-stream , not the expected <span>application/vnd.<wbr>openxmlformats-officedocument.<wbr>spreadsheetml.sheet , why ? many thanks !!!</span></span></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div></div>