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:
parent
a9462f01bf
commit
fb753bc008
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user