Skip to content

Verify that request is not null.#362

Open
yuriyshafranyuk1 wants to merge 2 commits into
adamfisk:masterfrom
yuriyshafranyuk1:fix-npe-in-is-head
Open

Verify that request is not null.#362
yuriyshafranyuk1 wants to merge 2 commits into
adamfisk:masterfrom
yuriyshafranyuk1:fix-npe-in-is-head

Conversation

@yuriyshafranyuk1
Copy link
Copy Markdown

Fix for #360.

// 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)) {
Copy link
Copy Markdown

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
Copy Markdown

@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.

3 participants