mirror of https://github.com/aria2/aria2
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use GET method for FTP via HTTP proxy. * src/FtpInitiateConnectionCommand.ccpull/1/head
parent
997a0c29d1
commit
0fcdb7eee3
|
@ -1,3 +1,8 @@
|
||||||
|
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Use GET method for FTP via HTTP proxy.
|
||||||
|
* src/FtpInitiateConnectionCommand.cc
|
||||||
|
|
||||||
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Changed the default value of --proxy-method option from 'tunnel'
|
Changed the default value of --proxy-method option from 'tunnel'
|
||||||
|
|
|
@ -80,6 +80,8 @@ Command* FtpInitiateConnectionCommand::createNextCommand
|
||||||
proxyRequest->getPort());
|
proxyRequest->getPort());
|
||||||
|
|
||||||
if(proxyMethod == V_GET) {
|
if(proxyMethod == V_GET) {
|
||||||
|
// Use GET for FTP via HTTP proxy.
|
||||||
|
req->setMethod(Request::METHOD_GET);
|
||||||
SharedHandle<HttpConnection> hc
|
SharedHandle<HttpConnection> hc
|
||||||
(new HttpConnection(cuid, socket, e->option));
|
(new HttpConnection(cuid, socket, e->option));
|
||||||
|
|
||||||
|
@ -101,6 +103,8 @@ Command* FtpInitiateConnectionCommand::createNextCommand
|
||||||
FtpNegotiationCommand::SEQ_SEND_CWD,
|
FtpNegotiationCommand::SEQ_SEND_CWD,
|
||||||
options["baseWorkingDir"]);
|
options["baseWorkingDir"]);
|
||||||
} else if(proxyMethod == V_GET) {
|
} else if(proxyMethod == V_GET) {
|
||||||
|
// Use GET for FTP via HTTP proxy.
|
||||||
|
req->setMethod(Request::METHOD_GET);
|
||||||
SharedHandle<HttpConnection> hc
|
SharedHandle<HttpConnection> hc
|
||||||
(new HttpConnection(cuid, pooledSocket, e->option));
|
(new HttpConnection(cuid, pooledSocket, e->option));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue