Changeset 1578

Show
Ignore:
Timestamp:
06/18/08 23:19:50 (2 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1577 r1578  
    112008-06-18  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/encoder_deflate.c (cherokee_encoder_deflate_add_headers), 
     4        cherokee/encoder_gzip.c (cherokee_encoder_gzip_add_headers): It 
     5        should add the "Vary: Accept-Encoding" header to let proxies know 
     6        which clients are suitable to receive the encoded content. 
    27 
    38        * admin/CherokeeManagement.py (cherokee_has_polling_method), 
  • cherokee/trunk/cherokee/encoder_deflate.c

    r1558 r1578  
    8484        UNUSED(encoder); 
    8585 
     86        cherokee_buffer_ensure_addlen (buf, 50); 
    8687        cherokee_buffer_add_str (buf, "Content-Encoding: deflate"CRLF); 
     88        cherokee_buffer_add_str (buf, "Vary: Accept-Encoding"CRLF); 
     89 
    8790        return ret_ok; 
    8891} 
  • cherokee/trunk/cherokee/encoder_gzip.c

    r1439 r1578  
    123123        UNUSED(encoder); 
    124124 
     125        cherokee_buffer_ensure_addlen (buf, 50); 
    125126        cherokee_buffer_add_str (buf, "Content-Encoding: gzip"CRLF); 
     127        cherokee_buffer_add_str (buf, "Vary: Accept-Encoding"CRLF); 
     128 
    126129        return ret_ok; 
    127130}