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

Verify that request is not null. #362

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Verify that request is not null. #362

wants to merge 2 commits into from

Conversation

yuriyshafranyuk1
Copy link

Fix for #360.

@@ -443,7 +443,7 @@ void respond(ProxyToServerConnection serverConnection, HttpFilters filters,
// if this HttpResponse does not have any means of signaling the end of the message body other than closing
// the connection, convert the message to a "Transfer-Encoding: chunked" HTTP response. This avoids the need
// to close the client connection to indicate the end of the message. (Responses to HEAD requests "must be" empty.)
if (!ProxyUtils.isHEAD(currentHttpRequest) && !ProxyUtils.isResponseSelfTerminating(httpResponse)) {
if ((currentHttpRequest != null && !ProxyUtils.isHEAD(currentHttpRequest)) && !ProxyUtils.isResponseSelfTerminating(httpResponse)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think there is one set of redundant parenthesis here.

@asolntsev
Copy link

@yuriyshafranyuk1 I think issue #360 was later fixed in e65c33d3

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.

None yet

3 participants