mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Fix #1603
This commit is contained in:
parent
18592e7f98
commit
50cba6db9f
@ -5853,7 +5853,7 @@ inline bool Server::routing(Request &req, Response &res, Stream &strm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// File handler
|
// File handler
|
||||||
bool is_head_request = req.method == "HEAD";
|
auto is_head_request = req.method == "HEAD";
|
||||||
if ((req.method == "GET" || is_head_request) &&
|
if ((req.method == "GET" || is_head_request) &&
|
||||||
handle_file_request(req, res, is_head_request)) {
|
handle_file_request(req, res, is_head_request)) {
|
||||||
return true;
|
return true;
|
||||||
@ -7620,8 +7620,8 @@ inline X509_STORE *ClientImpl::create_ca_cert_store(const char *ca_cert,
|
|||||||
|
|
||||||
auto cts = X509_STORE_new();
|
auto cts = X509_STORE_new();
|
||||||
if (cts) {
|
if (cts) {
|
||||||
for (auto first = 0, last = sk_X509_INFO_num(inf); first < last; ++first) {
|
for (auto i = 0; i < static_cast<int>(sk_X509_INFO_num(inf)); i++) {
|
||||||
auto itmp = sk_X509_INFO_value(inf, first);
|
auto itmp = sk_X509_INFO_value(inf, i);
|
||||||
if (!itmp) { continue; }
|
if (!itmp) { continue; }
|
||||||
|
|
||||||
if (itmp->x509) { X509_STORE_add_cert(cts, itmp->x509); }
|
if (itmp->x509) { X509_STORE_add_cert(cts, itmp->x509); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user