Mp4 mime-type module
TuzluKestane
nginx-forum at forum.nginx.org
Wed Dec 2 09:36:20 UTC 2020
Hello ,
I am trying to build a mp4 mime-type module but ı can't find the mime-type
for comparison. I tried to use r->headers_out.content_type but ıt didn't
work.Here is the peace of the code.
tmp=r->headers_out.content_type;
if (tmp!=NULL && ngx_strncmp(tmp,"video/mp4",9)==0) {
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
" found");
//r->keepalive = 0;
return NGX_HTTP_FORBIDDEN;
}
Thanks a lot !
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290143,290143#msg-290143
More information about the nginx
mailing list