httpd: Validate blob size for blob end readme endpoints
Similar to what we do on the /raw endpoint, we should also make sure that the blob end readme endpoints don’t serve too big files, who can eventually freeze the http consumer.
1 file changed
+25
-4
3b342ab3
→
57273593
modified radicle-httpd/src/api/v1/projects.rs
@@ -537,9 +537,18 @@ async fn blob_handler(
|
|
|
|
|
|
| - | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -565,8 +574,20 @@ async fn readme_handler(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|