Changeset 2304


Ignore:
Timestamp:
6/25/2011 3:22:15 PM (3 years ago)
Author:
lowjoel
Message:

Apache would send responses in chunks if we don't calculate our own response length. This causes 6.0.8 and earlier to choke, so buffer our output and tell the client how long our response is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/website/scripts/updates/index.php

    r1927 r2304  
    88    exit; 
    99 
     10ob_start(); 
    1011header('content-type: application/xml'); 
    1112$downloadsList = intval($versionMatch[2]) == 0 ? new UpdateList1() : new UpdateList1_1(); 
    1213$downloadsList->Output($version); 
     14 
     15header('content-length: ' . ob_get_length()); 
    1316?> 
Note: See TracChangeset for help on using the changeset viewer.