|  | @@ 4301-4311 (lines=11) @@ | 
                                                            
                                    | 4298 |  |         // this data. | 
                                                            
                                    | 4299 |  |         if (strlen($payload) > 1024 && isset($this->headers) && isset($this->headers['accept-encoding'])) { | 
                                                            
                                    | 4300 |  |             if (strstr($this->headers['accept-encoding'], 'gzip')) { | 
                                                            
                                    | 4301 |  |                 if (function_exists('gzencode')) { | 
                                                            
                                    | 4302 |  |                     if (isset($this->debug_flag) && $this->debug_flag) { | 
                                                            
                                    | 4303 |  |                         $payload .= "<!-- Content being gzipped -->"; | 
                                                            
                                    | 4304 |  |                     } | 
                                                            
                                    | 4305 |  |                     $this->outgoing_headers[] = "Content-Encoding: gzip"; | 
                                                            
                                    | 4306 |  |                     $payload = gzencode($payload); | 
                                                            
                                    | 4307 |  |                 } else { | 
                                                            
                                    | 4308 |  |                     if (isset($this->debug_flag) && $this->debug_flag) { | 
                                                            
                                    | 4309 |  |                         $payload .= "<!-- Content will not be gzipped: no gzencode -->"; | 
                                                            
                                    | 4310 |  |                     } | 
                                                            
                                    | 4311 |  |                 } | 
                                                            
                                    | 4312 |  |             } elseif (strstr($this->headers['accept-encoding'], 'deflate')) { | 
                                                            
                                    | 4313 |  |                 // Note: MSIE requires gzdeflate output (no Zlib header and checksum), | 
                                                            
                                    | 4314 |  |                 // instead of gzcompress output, | 
                                                                                
                                |  | @@ 4316-4326 (lines=11) @@ | 
                                                            
                                    | 4313 |  |                 // Note: MSIE requires gzdeflate output (no Zlib header and checksum), | 
                                                            
                                    | 4314 |  |                 // instead of gzcompress output, | 
                                                            
                                    | 4315 |  |                 // which conflicts with HTTP 1.1 spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5) | 
                                                            
                                    | 4316 |  |                 if (function_exists('gzdeflate')) { | 
                                                            
                                    | 4317 |  |                     if (isset($this->debug_flag) && $this->debug_flag) { | 
                                                            
                                    | 4318 |  |                         $payload .= "<!-- Content being deflated -->"; | 
                                                            
                                    | 4319 |  |                     } | 
                                                            
                                    | 4320 |  |                     $this->outgoing_headers[] = "Content-Encoding: deflate"; | 
                                                            
                                    | 4321 |  |                     $payload = gzdeflate($payload); | 
                                                            
                                    | 4322 |  |                 } else { | 
                                                            
                                    | 4323 |  |                     if (isset($this->debug_flag) && $this->debug_flag) { | 
                                                            
                                    | 4324 |  |                         $payload .= "<!-- Content will not be deflated: no gzcompress -->"; | 
                                                            
                                    | 4325 |  |                     } | 
                                                            
                                    | 4326 |  |                 } | 
                                                            
                                    | 4327 |  |             } | 
                                                            
                                    | 4328 |  |         } | 
                                                            
                                    | 4329 |  |         //end code |