]> git.tdb.fi Git - libs/net.git/blobdiff - source/version.cpp
Socket::close was removed
[libs/net.git] / source / version.cpp
index 2966fe8495ab04d6dbb0a03e6a859c2a27a5886d..e7ed6aaafb5e301ba20f5b3d1db8df8d47257449 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/lexicalcast.h>
 #include <msp/strings/regex.h>
@@ -17,7 +10,7 @@ namespace Http {
 
 Version parse_version(const std::string &ver)
 {
-       if(RegMatch match=Regex("^HTTP/([0-9]+).([0-9]+)$").match(ver))
+       if(RegMatch match = Regex("^HTTP/([0-9]+).([0-9]+)$").match(ver))
                return lexical_cast<unsigned>(match[1].str)<<4 | lexical_cast<unsigned>(match[2].str);
        else
                throw InvalidParameterValue("Invalid HTTP version");