Skip to content

HTTP/1.1 100 Continue - - - NOT removed correctly -- FIXED #1

Description

@GoogleCodeExporter
This is a FANTASTIC and clean and small poxy, however the included fix for 
extra 'continue headers' assumes that the extra header is only one line long.  
(mutli lines are often seen in ajax responses)

The fix is simple (even if mine is inellegant)

REMOVE

$response = str_replace( "HTTP/1.1 100 Continue\r\n\r\n", "", $response);

INSERT

if (   (substr( $response, 0, 21) == 'HTTP/1.1 100 Continue')
  && ($end_cont = strpos( $response, '\r\n\r\n'))
  ) {
     $response = substr($response, $end_cont + 4);
}

Many many thanks to the original author.

--
Roger

Original issue reported on code.google.com by roger.pf...@gmail.com on 11 Oct 2012 at 8:59

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions