Skip to content

Commit

Permalink
Merge pull request #1312 from Unidata/urlauth.dmh
Browse files Browse the repository at this point in the history
URL with username+pwd in url is not working.
  • Loading branch information
WardF authored Feb 14, 2019
2 parents 29d2643 + 6c3b7a0 commit 30c2ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libdispatch/dauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ NC_authsetup(NCauth* auth, NCURI* uri)
if(ret) {nullfree(uri_hostport); return ret;}
}
}
setauthfield(auth,"HTTP.USERNAME",user);
setauthfield(auth,"HTTP.PASSWORD",pwd);
setauthfield(auth,"HTTP.CREDENTIALS.USERNAME",user);
setauthfield(auth,"HTTP.CREDENTIALS.PASSWORD",pwd);
nullfree(user);
nullfree(pwd);
nullfree(uri_hostport);
Expand Down

0 comments on commit 30c2ca2

Please sign in to comment.