Skip to content

Commit a00ddbc

Browse files
authored
Merge pull request #11 from ProvableHQ/fix/increase-request-body-size
Increase request body size
2 parents 437f013 + 7ee7e83 commit a00ddbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rest/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ impl<N: Network, C: ConsensusStorage<N>> Rest<N, C> {
199199
.layer(middleware::map_request(log_middleware))
200200
// Enable CORS.
201201
.layer(cors)
202-
// Cap the request body size at 512KiB.
203-
.layer(DefaultBodyLimit::max(512 * 1024))
202+
// Cap the request body size at 2MiB to match snarkVM V14's 768 KiB binary transaction limit.
203+
.layer(DefaultBodyLimit::max(2 * 768 * 1024))
204204
.layer(governor_layer)
205205
}
206206

0 commit comments

Comments
 (0)