]> git.tdb.fi Git - libs/net.git/blobdiff - source/response.cpp
Change listen address construction
[libs/net.git] / source / response.cpp
index fe7469d0780d32372f392d80bacf5fbe65be434c..ede249b7e11afa467e5423f4c4a54faa091fc59c 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmsphttp
-Copyright © 2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
 #include <msp/strings/formatter.h>
 #include <msp/strings/utils.h>
 #include "response.h"
@@ -33,7 +26,7 @@ Response Response::parse(const string &str)
        unsigned lf = str.find('\n');
        vector<string> parts = split(str.substr(0, lf), ' ', 2);
        if(parts.size()<2)
-               throw InvalidParameterValue("Invalid response");
+               throw invalid_argument("Response::parse");
 
        result.http_version = parse_version(parts[0]);
        result.status = static_cast<Status>(lexical_cast<unsigned>(parts[1]));