Using nginx load balance. how to change the http header attribute sort order?

HI, all

i’m use nginx load balance.

the response http header , The “Content-Length” is the last line on
the
header , see the under :

HTTP/1.1 200 OK
Server: nginx/0.8.30
Date: Sun, 31 Jan 2010 04:20:08 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
Content-Length: 46

how to change the http header attribute sort order? like this ?

HTTP/1.1 200 OK
Server: nginx/0.8.30
Connection: keep-alive
Content-Length: 46
Date: Sun, 31 Jan 2010 04:20:08 GMT
Content-Type: text/html;charset=UTF-8

Sequence of headers does NOT make sense.

2010/1/31 Taixiang S. [email protected]:

HI, all

  i’m use nginx load balance.

  the response http header , The “Content-Length” is the last line on the

  how to change the http header attribute sort order? like this ?


Ren Xiaolei

edit ngx_http_header_filter_module.c

ngx_http_header_filter(ngx_http_request_t *r)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs