From fb753bc00816392b0b8a0c2f21afe72a993b56ea Mon Sep 17 00:00:00 2001 From: James Yonan Date: Wed, 2 Sep 2015 03:12:42 -0700 Subject: [PATCH] In HTTP::Request (request.hpp), added at_least_http_1_1() method. --- openvpn/http/request.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn/http/request.hpp b/openvpn/http/request.hpp index ac1392c4..849414dd 100644 --- a/openvpn/http/request.hpp +++ b/openvpn/http/request.hpp @@ -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;