Skip to content

Commit

Permalink
Only allow NuSOAP to compress SOAP responses
Browse files Browse the repository at this point in the history
When NuSOAP receives a request which declares that it accepts a compressed (gzip,deflate)
response, it performs its own compression. Although conceptually incorrect, since this
should be handled by the web server, there is no configuration flag to disable it.

Therefore we disable all forms of compression for the SOAP API and allow NuSOAP to perform
the compression itself.

Fixes #11868: returned compressed data corrupt
  • Loading branch information
rombert committed May 16, 2010
1 parent c6e11f9 commit 9faf487
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/soap/mantisconnect.php
Expand Up @@ -6,6 +6,12 @@
# change the license of future releases.
# See docs/ folder for more details

// NuSOAP already performs compression,
// so we prevent a double-compression.
// See issue #11868 for details
define( 'COMPRESSION_DISABLED', true);
ini_set( 'zlib.output_compression', false );

set_include_path( '../../library' );
require_once( 'nusoap/nusoap.php' );

Expand Down

0 comments on commit 9faf487

Please sign in to comment.