Welcome! Log In Create A New Profile

Advanced

Nginx 1.17.0 doesn't change the content-type header

June 29, 2019 06:50PM
Hello,

I have the following config in the http:

include mime.types;
default_type application/octet-stream;


also i have this in the location:

types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}


But when i send a request, i am getting these headers:

Request URL:
https://example.com/hls/5d134afe91b970.80939375/1024_576_1500_5d134afe91b970.80939375_00169.ts


1.
Accept-Ranges:
bytes
2.
Access-Control-Allow-Credentials:
true
3.
Access-Control-Allow-Headers:
DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Origin,X-Auth-Token,Authorization,Accept,Client-Security-Token
4.
Access-Control-Allow-Methods:
OPTIONS, GET
5.
Access-Control-Allow-Origin:
*
6.
Cache-Control:
max-age=31536000
7.
Connection:
keep-alive
8.
Content-Length:
259440
9.
Content-Type:
application/octet-stream
10.
Date:
Sat, 29 Jun 2019 22:43:57 GMT
11.
ETag:
"d1a1739b4444da72c0e25251e4669b45"
12.
Last-Modified:
Wed, 26 Jun 2019 18:08:17 GMT
13.
Server:
nginx/1.17.0
14.

Request URL:
https://example.com/hls/5d134afe91b970.80939375/playlist.m3u8



1.
Accept-Ranges:
bytes
2.
Access-Control-Allow-Credentials:
true
3.
Access-Control-Allow-Headers:
DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Origin,X-Auth-Token,Authorization,Accept,Client-Security-Token
4.
Access-Control-Allow-Methods:
OPTIONS, GET
5.
Access-Control-Allow-Origin:
*
6.
Cache-Control:
max-age=31536000
7.
Connection:
keep-alive
8.
Content-Length:
601
9.
Content-Type:
application/octet-stream
10.
Date:
Sat, 29 Jun 2019 22:37:57 GMT
11.
ETag:
"7ba4b759c57dbffbca650ce6a290f524"
12.
Last-Modified:
Wed, 26 Jun 2019 10:57:04 GMT
13.
Server:
nginx/1.17.0


For some reason, Nginx doesn't change the Content-Type


Thanks
Andrew

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx 1.17.0 doesn't change the content-type header

andregr-jp June 29, 2019 06:50PM

Re: Nginx 1.17.0 doesn't change the content-type header

Maxim Dounin July 02, 2019 08:42PM

Re: Nginx 1.17.0 doesn't change the content-type header

andregr-jp July 03, 2019 02:18AM

Re: Nginx 1.17.0 doesn't change the content-type header

Francis Daly July 03, 2019 08:24AM

Re: Nginx 1.17.0 doesn't change the content-type header

andregr-jp July 03, 2019 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready