| 126 | |
| 127 | |
| 128 | void HTTPCredentials::updateProxyAuthInfo(HTTPRequest& request) |
| 129 | { |
| 130 | if (request.has(HTTPRequest::PROXY_AUTHORIZATION)) |
| 131 | { |
| 132 | const std::string& authorization = request.get(HTTPRequest::PROXY_AUTHORIZATION); |
| 133 | |
| 134 | if (isBasicCredentials(authorization)) |
| 135 | { |
| 136 | HTTPBasicCredentials(_digest.getUsername(), _digest.getPassword()).proxyAuthenticate(request); |
| 137 | } |
| 138 | else if (isDigestCredentials(authorization)) |
| 139 | { |
| 140 | _digest.updateProxyAuthInfo(request); |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | |
| 146 | bool HTTPCredentials::isBasicCredentials(const std::string& header) |
nothing calls this directly
no test coverage detected