]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/request.cpp
Use string::size_type to store string offsets
[libs/net.git] / source / http / request.cpp
index f050e0440084d0a0b447875fec014d7ef4940dee..54b0beeaa9cb4f7e908f995a2d0d328bc1bf91a0 100644 (file)
@@ -27,7 +27,7 @@ string Request::str() const
 
 Request Request::parse(const string &str)
 {
-       unsigned lf = str.find('\n');
+       string::size_type lf = str.find('\n');
        vector<string> parts = split(str.substr(0, lf-(str[lf-1]=='\r')), ' ', 2);
        if(parts.size()<3)
                throw invalid_argument("Request::parse");