diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 23:28:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 23:28:31 +0900 |
| commit | 4ea28cb8377bc7b4654e6ae0216db6a7425d12c9 (patch) | |
| tree | 27c63eb57a315ab5ab7596ac46da2ac840d9ef19 /src/HttpSkipResponseCommand.cc | |
| parent | 02292feaba560e379acec7f7477a0c50c679d0dc (diff) | |
Don't send basic auth header to service operated on differenct port.
When --http-auth-challenge=true, aria2 only sends basic auth header
when requested. Old implementation sends basic auth header to service
operated in different port in successive request. This change avoid
this bug.
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
| -rw-r--r-- | src/HttpSkipResponseCommand.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index d9824f0f..8e58a962 100644 --- a/src/HttpSkipResponseCommand.cc +++ b/src/HttpSkipResponseCommand.cc @@ -199,7 +199,8 @@ bool HttpSkipResponseCommand::processResponse() if(getOption()->getAsBool(PREF_HTTP_AUTH_CHALLENGE) && !httpResponse_->getHttpRequest()->authenticationUsed() && getDownloadEngine()->getAuthConfigFactory()->activateBasicCred - (getRequest()->getHost(), getRequest()->getDir(), getOption().get())) { + (getRequest()->getHost(), getRequest()->getPort(), + getRequest()->getDir(), getOption().get())) { return prepareForRetry(0); } else { throw DL_ABORT_EX2(EX_AUTH_FAILED, |
