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

This commit should fix issue AHC-116 #28

Merged
merged 1 commit into from Oct 25, 2011

Conversation

rsertelon
Copy link
Contributor

Now proxyServer.getNtlmDomain() is tested for inequality with "" instead of null.

Indeed, it is defined as private String ntlmDomain = System.getProperty("http.auth.ntlm.domain", ""); in ProxyServer.java.

jfarcand added a commit that referenced this pull request Oct 25, 2011
This commit should fix issue AHC-116
@jfarcand jfarcand merged commit f2d8031 into AsyncHttpClient:master Oct 25, 2011
@jfarcand
Copy link
Contributor

Nice catch, thanks. In 1.7.

@jeffstyr
Copy link

But that will pass the check now if it is actually null. (And also it's not guaranteed that == will always work, it could be a different String instance of "".)

The safer check would be: foo != null && foo.length() > 0

@rsertelon
Copy link
Contributor Author

Hey,

My bad, too many Scala development lately... forgot that == was NOT equals in Java :p

@rsertelon
Copy link
Contributor Author

@jeffstyr, I've made the modification in a new pull request :-) thanks for your correction ;-)

@jfarcand
Copy link
Contributor

Eurr...completely missed that as well. Will take a look at your last pull. Thanks!

@jeffstyr
Copy link

No problem. And yeah, Scala does peculiar things to one's brain.

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