Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Windows servers with Content-Length #16

Open
Illsteward opened this issue Nov 1, 2017 · 3 comments
Open

Issue on Windows servers with Content-Length #16

Illsteward opened this issue Nov 1, 2017 · 3 comments

Comments

@Illsteward
Copy link

Hi,

for some reasons, Windows servers have always had trouble with using Content-Length and zipping content within NuSoap. No matter the settings in Apache, the content comes messed. A quick workaround is to comment out lines 4345 to 4377, starting with comment "//begin code to compress payload - by John" and ending with $this->outgoing_headers[] = "Content-Length: " . strlen($payload);
Confirmed on Windows server 2012 R2 with multiple NuSoap versions, yours included. Adding mode_deflate to Apache did not help, neither did setting PHP global compression to deflate or none. Can you please look into it?

@Illsteward
Copy link
Author

Proposed solution - add OS detection to line 4345, so that the compression is off for Windows.

@f3l1x
Copy link
Member

f3l1x commented Dec 6, 2017

Could you please send a PR? I agree with your solution.

@Illsteward
Copy link
Author

Created.

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

No branches or pull requests

2 participants