Loading ...
Sorry, an error occurred while loading the content.

[PATCH] Content-Type: header grows and grows

Expand Messages
  • Ollie Cook
    Under SOAP::Lite 0.66 the Content-Type: HTTP header grows and grows with each call. Enabling trace shows the header being sent as follows: Content-Type:
    Message 1 of 2 , Jan 27, 2006
    • 0 Attachment
      Under SOAP::Lite 0.66 the Content-Type: HTTP header grows and grows with
      each call. Enabling 'trace' shows the header being sent as follows:

      Content-Type: text/xml; charset=utf-8; charset=utf-8;
      charset=utf-8;...

      The number of occurrences of "charset=utf-8" increases with each call.

      I thought this might have been related to the use of HTTP Keep-Alive and
      the PATCH_HTTP_KEEPALIVE constant, but disabling those doesn't modify
      this behaviour.

      The bit of code that introduces this behaviour is in
      SOAP/Transport/HTTP.pm:

      if(!$req->content_type){
      $req->content_type(join '; ',...

      I have attached a patch which resolves this for me. I'm not terribly
      familiar with this module though, so there may be a better way to fix
      this.

      Cheers,

      Ollie

      --
      Ollie Cook
      UNIX Scripter
      Information Systems

      Direct Line: 020 8834 8128
      Waterfront | Hammersmith Embankment | Chancellors Road London | W6 9HP
    • Ollie Cook
      ... I apologise. That patch was back-to-front! Please find a correct patch attached. Ollie -- Ollie Cook UNIX Scripter Information Systems Direct Line: 020
      Message 2 of 2 , Jan 27, 2006
      • 0 Attachment
        On Fri, 2006-01-27 at 17:23 +0000, Ollie Cook wrote:
        > I have attached a patch which resolves this for me.

        I apologise. That patch was back-to-front! Please find a correct patch
        attached.

        Ollie
        --
        Ollie Cook
        UNIX Scripter
        Information Systems

        Direct Line: 020 8834 8128
        Waterfront | Hammersmith Embankment | Chancellors Road London | W6 9HP
      Your message has been successfully submitted and would be delivered to recipients shortly.