We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31abaf7 commit ab5ce74Copy full SHA for ab5ce74
1 file changed
src/proxy.rs
@@ -46,7 +46,18 @@ pub async fn forward(
46
if new_url.path().contains("containers/json") {
47
let _list_span = span!(Level::DEBUG, "Container List").entered();
48
49
- let containers = &res.json::<Vec<ContainerSummary>>().await.unwrap();
+ let container_res = &res.json::<Vec<ContainerSummary>>()
50
+ // 2mb in bytes
51
+ .limit(2097152).await;
52
+
53
+ let containers = match container_res {
54
+ Ok(list_res) => {
55
+ list_res
56
+ }
57
+ Err(e) => {
58
+ panic!("{e}");
59
60
+ };
61
62
// filter all containers to only those that have values from CONTAINER_NAMES includes in their names
63
let filtered_containers = containers.into_iter()
0 commit comments