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 _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx