mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-06 18:00:24 +08:00
URL with username+pwd in url is not working.
re: esupport (DVK-211460) Turns out it was a typo in libdispatch/dauth.c Fix is to Change: HTTP.USERNAME -> HTTP.CREDENTIALS.USERNAME and HTTP.PASSWORD-> HTTP.CREDENTIALS.PASSWORD
This commit is contained in:
parent
a260bbbf76
commit
4cd440dd96
@ -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