removes stray space from proxy auth header references #132

This commit is contained in:
Peter Thorson
2013-05-06 08:22:03 -05:00
parent b2fbb7b8ba
commit 3304647c3f

View File

@@ -127,7 +127,7 @@ public:
}
void set_proxy_basic_auth(const std::string & u, const std::string & p) {
if (m_proxy_data) {
std::string val = "Basic "+base64_encode(u + ": " + p);
std::string val = "Basic "+base64_encode(u + ":" + p);
m_proxy_data->req.replace_header("Proxy-Authorization",val);
} else {
// TODO: should we throw errors with invalid stuff here or just