X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fversion.cpp;h=e7ed6aaafb5e301ba20f5b3d1db8df8d47257449;hb=2ced7606eb9090cdddd89e0481c441403d367bb2;hp=2966fe8495ab04d6dbb0a03e6a859c2a27a5886d;hpb=a4049d7c4126126ca3abd12b1aca8715e7006d44;p=libs%2Fnet.git diff --git a/source/version.cpp b/source/version.cpp index 2966fe8..e7ed6aa 100644 --- a/source/version.cpp +++ b/source/version.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmsphttp -Copyright © 2008 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #include #include #include @@ -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(match[1].str)<<4 | lexical_cast(match[2].str); else throw InvalidParameterValue("Invalid HTTP version");