Skip to content

Commit

Permalink
Fix "concat()" called on null when the URL includes auth
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Sep 13, 2023
1 parent 46f5853 commit d64a024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tink/http/Request.hx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class OutgoingRequestHeader extends RequestHeader {
switch extractAuth(url) {
case Some(v):
url = v.url;
fields = fields.concat(v.headers);
fields = fields != null ? fields.concat(v.headers) : v.headers;
default:
}
super(method, url, protocol, fields);
Expand Down

0 comments on commit d64a024

Please sign in to comment.