Skip to content

Commit

Permalink
allow http header (#4416)
Browse files Browse the repository at this point in the history
  • Loading branch information
modship authored Nov 21, 2023
1 parent 06f83d8 commit 1cd32b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions massa-grpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ impl MassaPublicGrpc {
service = service.send_compressed(CompressionEncoding::Gzip);
};
}

serve(service, config).await
}
}
Expand Down Expand Up @@ -268,7 +267,7 @@ where
.allow_methods([Method::GET, Method::POST, Method::OPTIONS])
// Allow requests from any origin
.allow_origin(Any)
.allow_headers([hyper::header::CONTENT_TYPE]);
.allow_headers(Any);

let router_with_http1 = server_builder
.accept_http1(true)
Expand Down

0 comments on commit 1cd32b4

Please sign in to comment.