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

Fixed _servletDispatchRequest() to check for non-null WOResponse content... #635

Merged
merged 2 commits into from
May 6, 2015

Conversation

faizel
Copy link
Contributor

@faizel faizel commented Mar 27, 2015

In a servlet deployment, if you are setting a content stream on the response (e.g. for streaming binary data), the response does not return any data due to a faulty conditional that checks for available content. This fix amends that conditional to check to also check for a non-null input stream as well as non-empty content data.

@renebock
Copy link
Contributor

+1

This fixes a problem I ran into long time ago :-)
But keep in mind, that you need the servlet.jar somewhere in the build path..

darkv added a commit that referenced this pull request May 6, 2015
Fixed _servletDispatchRequest() to check for non-null WOResponse content...
@darkv darkv merged commit 2c2147e into wocommunity:master May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants