From 05d61f3c39b65ece4f6628e8e1aa96fbf52fc953 Mon Sep 17 00:00:00 2001 From: Yateesh Bhardwaj <40439406+yateeshbhardwaj@users.noreply.github.com> Date: Wed, 1 Apr 2026 18:58:56 +0530 Subject: [PATCH] Update fetch.rs At line 156, URL builder function was replacing the path of the URL because of the leading Slash in the request.str --- sdk/src/crypto/ocsp/fetch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/crypto/ocsp/fetch.rs b/sdk/src/crypto/ocsp/fetch.rs index 7f73de848..50a15f7a0 100644 --- a/sdk/src/crypto/ocsp/fetch.rs +++ b/sdk/src/crypto/ocsp/fetch.rs @@ -153,7 +153,7 @@ pub(crate) fn fetch_ocsp_response(certs: &[Vec], context: &Context) -> Optio context .check_progress(ProgressPhase::FetchingOCSP, step, requests_len) .ok()?; - let req_url = request_data.url.join(&request_data.request_str).ok()?; + let req_url = request_data.url.join(&request_data.request_str.trim_start_matches('/')).ok()?; let mut request = http::Request::get(req_url.to_string()); if let Some(host) = req_url.host() {