X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fresponse.cpp;h=739a20f3da2fa2ba6503e13b216ba842b9403ec3;hb=5f312d842b55f53ac78ae2c658cab064debe74e6;hp=ede249b7e11afa467e5423f4c4a54faa091fc59c;hpb=debe1004676d5431e571d9c4361072661dcc88c4;p=libs%2Fnet.git diff --git a/source/http/response.cpp b/source/http/response.cpp index ede249b..739a20f 100644 --- a/source/http/response.cpp +++ b/source/http/response.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include "response.h" @@ -23,7 +23,7 @@ Response Response::parse(const string &str) { Response result; - unsigned lf = str.find('\n'); + string::size_type lf = str.find('\n'); vector parts = split(str.substr(0, lf), ' ', 2); if(parts.size()<2) throw invalid_argument("Response::parse");