File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
providers/netty/src/main/java/org/asynchttpclient/providers/netty Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -623,11 +623,14 @@ else if (uri.getRawQuery() != null)
623
623
}
624
624
625
625
if (!m .equals (HttpMethod .CONNECT )) {
626
- for (Entry <String , List <String >> header : request .getHeaders ()) {
627
- String name = header .getKey ();
628
- if (!HttpHeaders .Names .HOST .equalsIgnoreCase (name )) {
629
- for (String value : header .getValue ()) {
630
- nettyRequest .addHeader (name , value );
626
+ FluentCaseInsensitiveStringsMap h = request .getHeaders ();
627
+ if (h != null ) {
628
+ for (Entry <String , List <String >> header : h ) {
629
+ String name = header .getKey ();
630
+ if (!HttpHeaders .Names .HOST .equalsIgnoreCase (name )) {
631
+ for (String value : header .getValue ()) {
632
+ nettyRequest .addHeader (name , value );
633
+ }
631
634
}
632
635
}
633
636
}
You can’t perform that action at this time.
0 commit comments