Skip to content

Conversation

@customautosys
Copy link

When one wants to disable followRedirect, sometimes the InputStream will throw an EOFException due to there being no content in the response body. It is undesired for this to result in an error returned to Cordova, as the end user would just want to be able to read the Location header anyway (and follow it if necessary).

}
}catch(EOFException e){
e.printStackTrace();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this also be done in the copy(Reader that follows? given it has a similar while ((read = input.read(buffer)) … loop.

Copy link
Author

Choose a reason for hiding this comment

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

Good idea

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.

2 participants