From 2f56fb9fbd9fcaef6e87873a263807f62379e18d Mon Sep 17 00:00:00 2001 From: James Yonan Date: Tue, 12 Jul 2016 22:27:23 -0700 Subject: [PATCH] httpcli.hpp : added Request::creds_defined() method. --- openvpn/ws/httpcli.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openvpn/ws/httpcli.hpp b/openvpn/ws/httpcli.hpp index d8ecd748..1c03aa6d 100644 --- a/openvpn/ws/httpcli.hpp +++ b/openvpn/ws/httpcli.hpp @@ -170,7 +170,13 @@ namespace openvpn { } }; - struct Request { + struct Request + { + bool creds_defined() const + { + return !username.empty() || !password.empty(); + } + void set_creds(const Creds& creds) { username = creds.username;