Welcome! Log In Create A New Profile

Advanced

Не получается указать (переуказать) Content-Type

Posted by FoMa 
Не получается указать (переуказать) Content-Type
February 24, 2011 12:44AM
Указываю в конфиге для файла отдачу Content-Type:
add_header Content-Type 'text/javascript; charser=UTF-8';

В результате отдаются следующие заголовки:
HTTP/1.1 200 OK
Server: nginx/0.8.52
Content-Type: application/x-javascript
Content-Type: text/javascript; charset=UTF-8

И браузер обращает внимание только на первый Content-Type. В то время как именно его мне и нужно перезаписать. Возможно дело в том что nginx стоит поверх апатча? Как решить проблеу?
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 274
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