diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-17 18:51:12 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-17 18:51:12 +0000 |
| commit | 2c732211f45b4caea3f569971905f176887b4a4a (patch) | |
| tree | b86f8ec0803c8f66ec08756b2bc69db09caa0461 /src/InitiateConnectionCommandFactory.cc | |
| parent | 8acb1181f9b6879b9520a824d1e15fa0dd889624 (diff) | |
* Added HTTPS support.
* Added SocketCore. Socket is now handle class for SocketCore.
* Fixed bug in ChunkedEncoding: expanding buffer size is wrong
* Fixed bug in DownloadCommand: In Chunked Encoding, it wrongly
adds to Segment.ds buff length from the socket.
Diffstat (limited to 'src/InitiateConnectionCommandFactory.cc')
| -rw-r--r-- | src/InitiateConnectionCommandFactory.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/InitiateConnectionCommandFactory.cc b/src/InitiateConnectionCommandFactory.cc index 7a145ac4..3ba177bd 100644 --- a/src/InitiateConnectionCommandFactory.cc +++ b/src/InitiateConnectionCommandFactory.cc @@ -23,7 +23,12 @@ #include "HttpInitiateConnectionCommand.h" Command* InitiateConnectionCommandFactory::createInitiateConnectionCommand(int cuid, Request* req, DownloadEngine* e) { - if(req->getProtocol() == "http") { + if(req->getProtocol() == "http" +#ifdef HAVE_LIBSSL + // for SSL + || req->getProtocol() == "https" +#endif // HAVE_LIBSSL + ) { return new HttpInitiateConnectionCommand(cuid, req, e); } else { // these protocols are not supported yet |
