[READ-ONLY] Mirror of https://github.com/FoxxMD/docker-proxy-filter. Filter the contents of Docker API responses
docker docker-socket-proxy filter
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #4 from andreasbrett/fix_head_requests

Fix issue with Docker API version negotiation in Traefik

authored by

Matt Foxx and committed by
GitHub
(Jun 11, 2026, 9:06 AM EDT) d2f671aa 43a5bdf8

+9
+9
src/proxy.rs
··· 38 38 .map_err(web::Error::from)?; 39 39 40 40 let mut client_resp = web::HttpResponse::build(res.status()); 41 + 42 + // respond without body for /_ping HEAD request 43 + if req.uri().path() == "/_ping" && req.method() == http::Method::HEAD { 44 + for (key, value) in res.headers().iter() { 45 + client_resp.header(key.clone(), value.clone()); 46 + } 47 + return Ok(client_resp.finish()); 48 + } 49 + 41 50 client_resp.content_type(res.content_type()); 42 51 43 52 if res.status() == 200 {