Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Баг с заголовком Content-Type пр и X-Accel-Redirect
- To: nginx-ru <nginx-ru@xxxxxxxxx>
- Subject: Баг с заголовком Content-Type пр и X-Accel-Redirect
- From: "SaveFrom.net" <savefrom@xxxxxxxxx>
- Date: Tue, 27 Dec 2011 02:16:51 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ub6KaTnVtYcbKL1bC6Pj9m+C2WnL4+auFNl5MGR6UXg=; b=XSe7vc8CVPZdwcL/WGGXvBzJUGZmpv0WXo+gqTfinJvBaqAanNssRldboSnOA/cJGC ytkP35IEVFv4YOOUeKP0DjdZ4lDnlpRPDqkewQC9GU87UERrKexJzo2lHjSfUh9b/hFt PVKbkqOtnnJGF6rlsf2iZm13h6G29/9w4bjHM=
Здравствуйте.
Отловил следующий баг: при проксировании не удается заменить заголовок Content-Type, если был внутренний редирект (x-accel-redirect).
Конфиг:
Дергаем /x-accel/ HTTP/1.1 200 OK
Server: nginx
Date: Mon, 26 Dec 2011 18:04:14 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
Last-Modified: Thu, 15 Apr 2010 09:32:45 GMT
ETag: "3e0122-5a6c41-4bc6dd3d"
Accept-Ranges: bytes
Content-Length: 5925953
Content-Type: application/octet-stream
А если дернуть /foo/ - Ок. Директивы срабатыват ожидаемым образом. HTTP/1.1 200 OK
Server: nginx
Date: Mon, 26 Dec 2011 18:04:24 GMT
Connection: keep-alive
Last-Modified: Thu, 15 Apr 2010 09:32:45 GMT
ETag: "3e0122-5a6c41-4bc6dd3d"
Accept-Ranges: bytes
Content-Length: 5925953
Content-Type: application/octet-stream
HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 18:07:48 GMT
Server: Apache
Last-Modified: Thu, 15 Apr 2010 09:32:45 GMT
ETag: "3e0122-5a6c41-4bc6dd3d"
Accept-Ranges: bytes
Content-Length: 5925953
Keep-Alive: timeout=15, max=800
Connection: Keep-Alive
Content-Type: audio/mpeg
nginx -V
nginx: nginx version: nginx/1.1.2 nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50) nginx: TLS SNI support disabled nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin/nginx --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/spool/nginx/tmp/client --http-proxy-temp-path=/var/spool/nginx/tmp/proxy --http-fastcgi-temp-path=/var/spool/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --user=nginx --group=nginx --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module
-- С уважением, Антон
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|