Re: Анонс модуля

Rauan Maemirov rauan at maemirov.com
Sat Oct 18 17:48:21 MSD 2008


location /qwerty {
     response "<root><pid>$pid</pid></root>";
     response_content_type "text/xml";
}

результат:

<root><pid>28894</pid></root

location /qwerty {
     response "yo";
     response_content_type "text/html";
}

результат:

yo�

nginx-0.7.9. centos5.2 (32-битный)

> 2008/10/18 Kirill A. Korinskiy <catap at catap.ru>:
>> At Sat, 18 Oct 2008 05:45:48 +0200,
>> =?KOI8-R?B?4s/SydMg5M/Mx8/X?= wrote:
>>>
>>> [1  <text/plain; KOI8-R (base64)>]
>>>
>>> [2  <text/html; KOI8-R (base64)>]
>>> Мне кажется, стоило бы переименовать content_type в response_content_type, и можно было бы включать в nginx.
>>>
>> Подумал побольше и переименовал, спасибо за замечание.
>>
>> Так же, по умолчанию, если не указан response_content_type, то
>> значение берется из default_type.
>>
>> Патч обновил.


More information about the nginx-ru mailing list