X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fhttp%2Fserver.cpp;fp=source%2Fhttp%2Fserver.cpp;h=f0474fd18e993c57de16b1a3f51c07dc260f069f;hp=fc6d61f14c8c065e43bf951a4cc8f52b5a7eac48;hb=b4e0f7ed23f24e78fd09c9b7f206279e16d38c1e;hpb=049fc42b671d623815408c3658a450b73063fec5 diff --git a/source/http/server.cpp b/source/http/server.cpp index fc6d61f..f0474fd 100644 --- a/source/http/server.cpp +++ b/source/http/server.cpp @@ -106,7 +106,7 @@ void Server::client_data_available(Client &cl) cl.request = new Request(Request::parse(cl.in_buf)); string addr_str = cl.sock->get_peer_address().str(); - unsigned colon = addr_str.find(':'); + string::size_type colon = addr_str.find(':'); cl.request->set_header("-Client-Host", addr_str.substr(0, colon)); if(cl.request->get_method()!="GET" && cl.request->get_method()!="POST")