Browse Source

fixed build with boost 1.46

pull/14/head
orignal 11 years ago
parent
commit
2b87a58685
  1. 2
      NetDb.cpp

2
NetDb.cpp

@ -529,7 +529,7 @@ namespace data
boost::asio::ip::tcp::iostream site(address, "http"); boost::asio::ip::tcp::iostream site(address, "http");
if (!site) if (!site)
{ {
site.expires_from_now (boost::posix_time::seconds (10)); // wait for 10 seconds //site.expires_from_now (boost::posix_time::seconds (10)); // wait for 10 seconds
site << "GET " << filename << "HTTP/1.0\nHost: " << address << "\nAccept: */*\nConnection: close\n\n"; site << "GET " << filename << "HTTP/1.0\nHost: " << address << "\nAccept: */*\nConnection: close\n\n";
// read response // read response
std::string version, statusMessage; std::string version, statusMessage;

Loading…
Cancel
Save