0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

In HTTP::Request (request.hpp), added at_least_http_1_1()

method.
This commit is contained in:
James Yonan 2015-09-02 03:12:42 -07:00
parent a9462f01bf
commit fb753bc008

View File

@ -65,6 +65,11 @@ namespace openvpn {
return out.str();
}
bool at_least_http_1_1() const
{
return http_version_major > 1 || (http_version_major == 1 && http_version_minor >= 1);
}
std::string method;
std::string uri;
int http_version_major;