mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-06 18:00:24 +08:00
Merge pull request #1312 from Unidata/urlauth.dmh
URL with username+pwd in url is not working.
This commit is contained in:
commit
30c2ca2413
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user