Skip to content

re-authenticate before creating request to avoid 'already connected' …#27

Merged
mythz merged 1 commit into
ServiceStack:masterfrom
dchurchland:auth_exception
Feb 27, 2017
Merged

re-authenticate before creating request to avoid 'already connected' …#27
mythz merged 1 commit into
ServiceStack:masterfrom
dchurchland:auth_exception

Conversation

@dchurchland

Copy link
Copy Markdown
Contributor

The feature to transparently send the basic credentials on a 401 response fails on a POST as the call to getOutputStream connects the HttpURLConnection, leading to a later error (already connected) when we attempt to authenticate.

To get around this I forceAuthentication prior to calling getOutputStream.

@mythz mythz merged commit 5ccc6b2 into ServiceStack:master Feb 27, 2017
@mythz

mythz commented Feb 27, 2017

Copy link
Copy Markdown
Member

Looks good, thx 👍

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