Ignore:
Timestamp:
2011-01-24 11:16:58 (3 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 3.0, 4.0, experimental-ims
Children:
9a5736
Parents:
f31ed4
git-author:
Poul-Henning Kamp <phk@…> (2011-01-24 11:16:58)
git-committer:
Poul-Henning Kamp <phk@…> (2011-01-24 11:16:58)
Message:

Normalize requests Accept-Encoding header if we are not pipe or pass
after vcl_recv{}. This is necessary to get consistent Vary: header
processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_center.c

    rf31ed4 r0c80b0  
    11691169        } 
    11701170 
     1171        if (params->http_gzip_support && 
     1172             (recv_handling != VCL_RET_PIPE) && 
     1173             (recv_handling != VCL_RET_PASS)) { 
     1174                if (RFC2616_Req_Gzip(sp)) { 
     1175                        http_Unset(sp->http, H_Accept_Encoding); 
     1176                        http_PrintfHeader(sp->wrk, sp->fd, sp->http, 
     1177                            "Accept-Encoding: gzip"); 
     1178                } else { 
     1179                        http_Unset(sp->http, H_Accept_Encoding); 
     1180                } 
     1181        } 
     1182 
    11711183        SHA256_Init(sp->wrk->sha256ctx); 
    11721184        VCL_hash_method(sp); 
Note: See TracChangeset for help on using the changeset viewer.