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

@silkimen silkimen force-pushed the master branch 26 times, most recently from 89a454e to a255081 Compare December 2, 2025 06:44
@silkimen silkimen force-pushed the master branch 4 times, most recently from 9b9ca58 to af5e069 Compare December 2, 2025 06:57
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