~ubuntu-branches/ubuntu/lucid/nginx/lucid-updates

« back to all changes in this revision

Viewing changes to src/http/modules/ngx_http_gzip_static_module.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2008-12-01 20:11:53 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081201201153-q0ap33bcphfxriy3
Tags: 0.6.34-1ubuntu1
* Merge from debian unstable, remaining changes: (LP: #303916)
  + debian/control:
    - Add Depend on lsb >= 3.2-14, which has the status_of_proc() function.
  + debian/init.d:
    - Add sourcing to '. /lib/lsb/init-functions'
    - Add the 'status' action
  + Fixed FTBFS by properly defining IOV_MAX to its Linux equivelent.
  + Added dpatch based patch system

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
 
204
204
    r->headers_out.content_encoding = h;
205
205
 
206
 
    if (clcf->gzip_vary) {
207
 
        h = ngx_list_push(&r->headers_out.headers);
208
 
        if (h == NULL) {
209
 
            return NGX_ERROR;
210
 
        }
211
 
 
212
 
        h->hash = 1;
213
 
        h->key.len = sizeof("Vary") - 1;
214
 
        h->key.data = (u_char *) "Vary";
215
 
        h->value.len = sizeof("Accept-Encoding") - 1;
216
 
        h->value.data = (u_char *) "Accept-Encoding";
217
 
    }
218
 
 
219
206
    /* we need to allocate all before the header would be sent */
220
207
 
221
208
    b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));