Skip to content

Commit

Permalink
Fix some OCSP request over proxy
Browse files Browse the repository at this point in the history
IB-3667
  • Loading branch information
metsma committed Jun 1, 2015
1 parent 4d3f2dd commit 812ed37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crypto/Connect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Connect::Connect(const string &_url, const string &method, int timeout, const st
string host = _host ? _host : "";
string port = _port ? _port : "80";
string path = _path ? _path : "/";
string url = _path ? _url : _url + "/";
string url = strlen(_path) == 1 && _path[0] == '/' && _url[_url.size() - 1] != '/' ? _url + "/" : _url;
OPENSSL_free(_host);
OPENSSL_free(_port);
OPENSSL_free(_path);
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/OCSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ OCSP_RESPONSE* OCSP::sendRequest(const string &_url, OCSP_REQUEST *req, const st
string hostname = host ? host : "";
if(port)
hostname += ":" + string(port);
string url = path ? _url : _url + "/";
string url = strlen(path) == 1 && path[0] == '/' && _url[_url.size() - 1] != '/' ? _url + "/" : _url;
OPENSSL_free(host);
OPENSSL_free(port);
OPENSSL_free(path);
Expand Down

0 comments on commit 812ed37

Please sign in to comment.