File tree 1 file changed +4
-4
lines changed
src/main/java/com/ning/http/client/providers/netty
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -703,20 +703,20 @@ else if (uri.getRawQuery() != null)
703
703
704
704
switch (realm .getAuthScheme ()) {
705
705
case BASIC :
706
- nettyRequest .setHeader (HttpHeaders .Names .AUTHORIZATION , AuthenticatorUtils .computeBasicAuthentication (realm ));
706
+ nettyRequest .addHeader (HttpHeaders .Names .AUTHORIZATION , AuthenticatorUtils .computeBasicAuthentication (realm ));
707
707
break ;
708
708
case DIGEST :
709
709
if (isNonEmpty (realm .getNonce ())) {
710
710
try {
711
- nettyRequest .setHeader (HttpHeaders .Names .AUTHORIZATION , AuthenticatorUtils .computeDigestAuthentication (realm ));
711
+ nettyRequest .addHeader (HttpHeaders .Names .AUTHORIZATION , AuthenticatorUtils .computeDigestAuthentication (realm ));
712
712
} catch (NoSuchAlgorithmException e ) {
713
713
throw new SecurityException (e );
714
714
}
715
715
}
716
716
break ;
717
717
case NTLM :
718
718
try {
719
- nettyRequest .setHeader (HttpHeaders .Names .AUTHORIZATION , ntlmEngine .generateType1Msg ("NTLM " + domain , authHost ));
719
+ nettyRequest .addHeader (HttpHeaders .Names .AUTHORIZATION , ntlmEngine .generateType1Msg ("NTLM " + domain , authHost ));
720
720
} catch (NTLMEngineException e ) {
721
721
IOException ie = new IOException ();
722
722
ie .initCause (e );
@@ -734,7 +734,7 @@ else if (uri.getRawQuery() != null)
734
734
ie .initCause (e );
735
735
throw ie ;
736
736
}
737
- nettyRequest .setHeader (HttpHeaders .Names .AUTHORIZATION , "Negotiate " + challengeHeader );
737
+ nettyRequest .addHeader (HttpHeaders .Names .AUTHORIZATION , "Negotiate " + challengeHeader );
738
738
break ;
739
739
case NONE :
740
740
break ;
You can’t perform that action at this time.
0 commit comments