# Nginx proxy\_pass with urls with no content-length headers

**URL:** <https://www.ruby-forum.com/t/nginx-proxy-pass-with-urls-with-no-content-length-headers/183019>\
**Category:** NGINX\
**Created:** [February 6, 2010, 6:07am UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-with-urls-with-no-content-length-headers/183019 "2010-02-06T06:07:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kingsley\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cab0a1/32.png) [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Post date:** [February 6, 2010, 6:07am UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-with-urls-with-no-content-length-headers/183019/1 "2010-02-06T06:07:16Z")

</div>

I’ve found a small issue with proxy\_pass when passing urls that don’t  
have a content-length field.

Nginx is adding a content-field length of 221183499 rather then just not  
including the header.

The way to test this is to proxy pass something like an icecast stream

Kingsley

---

<div class="post-metadata">

**Author:** ![Kingsley\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cab0a1/32.png) [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Post date:** [February 6, 2010, 6:28am UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-with-urls-with-no-content-length-headers/183019/2 "2010-02-06T06:28:19Z")

</div>

More on this…

Here are the differences, Original source

HTTP request sent, awaiting response…  
HTTP/1.0 200 OK  
Content-Type: audio/mpeg  
icy-br:128  
icy-genre:eclectic rock  
icy-name:Radio Paradise - DJ-mixed modern & classic rock, world,  
electronica & more - info: [radioparadise.com](http://radioparadise.com)  
icy-notice1:  
This stream requires [Winamp](http://www.winamp.com/)  
  
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux  
v1.9.7  
  
icy-pub:0  
icy-url:[http://www.radioparadise.com](http://www.radioparadise.com)  
Server: Icecast 2.3.2  
Cache-Control: no-cache

Proxy\_passed

HTTP request sent, awaiting response…  
HTTP/1.1 200 OK  
Server: nginx/0.7.65  
Date: Sat, 06 Feb 2010 05:16:40 GMT  
Content-Type: audio/mpeg  
Connection: keep-alive  
Keep-Alive: timeout=3  
icy-br: 128  
icy-genre: eclectic rock  
icy-name: Radio Paradise - DJ-mixed modern & classic rock, world,  
electronica & more - info: [radioparadise.com](http://radioparadise.com)  
icy-notice1:   
This stream requires [Winamp](http://www.winamp.com/)  
  
icy-notice2: SHOUTcast Distributed Network Audio Server/Linux  
v1.9.7  
  
icy-pub: 0  
icy-url: [http://www.radioparadise.com](http://www.radioparadise.com)  
Cache-Control: no-cache  
Content-Length: 221183499  
Expires: Mon, 26 Jul 1997 05:00:00 GMT
