content-type does not match mime type

B.R. reallfqq-nginx at yahoo.fr
Sat Oct 22 13:42:54 UTC 2016


Associating types to file extensions is done through the types
<http://nginx.org/en/docs/http/ngx_http_core_module.html#types> directive.
You probably have a default_type
<http://nginx.org/en/docs/http/ngx_http_core_module.html#default_type>
directive in a global location defining it to application/octet-stream.
---
*B. R.*

On Thu, Oct 20, 2016 at 5:06 PM, shang yu <yushang at outlook.com> wrote:

> Hi dear all,
>
> When I GET a xlsx file from nginx server , the response header
> Content-Type is application/octet-stream , not the expected
> application/vnd.openxmlformats-officedocument.spreadsheetml.sheet , why ?
> many thanks !!!
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161022/2f03599f/attachment.html>


More information about the nginx mailing list