mirror of https://github.com/aria2/aria2
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use request->getDir() instead of "/" for embedded user/pass in URI. * src/AuthConfigFactory.ccpull/1/head
parent
947effdf1c
commit
1a7064f6f6
|
@ -1,3 +1,9 @@
|
|||
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use request->getDir() instead of "/" for embedded user/pass in
|
||||
URI.
|
||||
* src/AuthConfigFactory.cc
|
||||
|
||||
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed wrong insertion point for BasicCred.
|
||||
|
|
|
@ -64,9 +64,9 @@ AuthConfigFactory::createAuthConfig
|
|||
|
||||
if(op->getAsBool(PREF_HTTP_AUTH_CHALLENGE)) {
|
||||
if(!request->getUsername().empty()) {
|
||||
// TODO setting "/" as path. Should we use request->getDir() instead?
|
||||
updateBasicCred(BasicCred(request->getUsername(), request->getPassword(),
|
||||
request->getHost(), "/", true));
|
||||
updateBasicCred(BasicCred(request->getUsername(),
|
||||
request->getPassword(),
|
||||
request->getHost(), request->getDir(), true));
|
||||
return createAuthConfig(request->getUsername(), request->getPassword());
|
||||
}
|
||||
std::deque<BasicCred>::const_iterator i =
|
||||
|
|
Loading…
Reference in New Issue