Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

initialize $do_compress #7

Merged
merged 1 commit into from

2 participants

@kvar

If the server sends a compressed response, $do_compress remains set to 1 for the next request. So the server always tries to uncompress the next request, even when it's not really compressed (which causes it to fail). This initializes $do_compress = 0 before checking the request for compression.

@rjray rjray merged commit 856da31 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 8, 2012
  1. @kvar
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/RPC/XML/Server.pm
View
1  lib/RPC/XML/Server.pm
@@ -841,6 +841,7 @@ sub process_request ## no critic (ProhibitExcessComplexity)
# Get a XML::Parser::ExpatNB object
$parser = $self->parser->parse();
+ $do_compress = 0; # in case it was set for a previous response
if (($req->content_encoding || q{}) =~ $self->compress_re)
{
if (! $self->compress)
Something went wrong with that request. Please try again.