Welcome! Log In Create A New Profile

Advanced

Mp4 mime-type module

December 02, 2020 04:36AM
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 !
Subject Author Posted

Mp4 mime-type module

TuzluKestane December 02, 2020 04:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready