ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/HttpHandler.cpp
(Generate patch)

Comparing trunk/Search/HttpHandler.cpp (file contents):
Revision 194 by douglas, 2003-07-11T00:54:47-07:00 vs.
Revision 201 by douglas, 2003-07-15T01:01:00-07:00

# Line 46 | Line 46
46   //
47   // Douglas Thrift
48   //
49 < // $Id: HttpHandler.cpp,v 1.18 2003/07/11 07:54:46 douglas Exp $
49 > // $Id: HttpHandler.cpp,v 1.19 2003/07/15 08:01:00 douglas Exp $
50  
51   #include "HttpHandler.h"
52  
# Line 79 | Line 79 | HttpHandler::HttpHandler()
79  
80          length = 0;
81          chunked = false;
82 + #ifdef _OpenSSL_
83 +        tls = false;
84 + #endif
85   }
86  
87   HttpHandler::~HttpHandler()
# Line 131 | Line 134 | bool HttpHandler::handle(URL &url, const
134          }
135  
136          putline("Accept: text/html; text/plain");
137 + #ifndef _OpenSSL_
138          putline("User-Agent: " + agent(true) + ' ' + platform());
139 + #else
140 +        putline("User-Agent: " + agent(true) + ' ' + platform() + ' '
141 +                + openssl(true));
142 + #endif
143  
144          if (url.getPort() == 80)
145          {
# Line 281 | Line 289 | void HttpHandler::clear()
289          location = "";
290          page = "";
291          chunked = false;
292 + #ifdef _OpenSSL_
293 +        tls = false;
294 + #endif
295   }
296  
297   void HttpHandler::populate()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines