Skip to content

Commit 286e782

Browse files
committed
perf(client): remove redundant hyper→wreq Method round-trip
1 parent 8ed51ec commit 286e782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pub async fn proxy(req: Request<Body>, format: &str) -> Result<Response<Body>, S
206206

207207
let mut builder = CLIENT.get(wreq_uri);
208208

209-
// Copy useful headers from original request
209+
// Forward caching/range headers from the browser request.
210210
for &key in &["Range", "If-Modified-Since", "Cache-Control"] {
211211
if let Some(value) = req.headers().get(key) {
212212
builder = builder.header(key, value.as_bytes());

0 commit comments

Comments
 (0)