Skip to content

Commit 9b72663

Browse files
fixup! refactor(iota-graphql-rpc): restrict usage of graphql subscriptions for mainnet & testnet
1 parent 0daa812 commit 9b72663

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/iota-graphql-rpc/src/server/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ async fn subscription_handler(
655655
.on_upgrade(move |stream| async move {
656656
// create connection data with per-connection values
657657
let mut connection_data = Data::default();
658+
// axum discards body on GET requests, being always 0
659+
connection_data.insert(PayloadSize(0));
658660
connection_data.insert(Uuid::new_v4());
659661
if headers_contains_show_usage {
660662
connection_data.insert(ShowUsage)

0 commit comments

Comments
 (0)