We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b3e127 commit 70a5212Copy full SHA for 70a5212
server/http/src/service.rs
@@ -546,6 +546,7 @@ mod tests {
546
let request = Request::builder()
547
.method(Method::POST)
548
.header(CONTENT_TYPE, "text/plain; charset=utf-8")
549
+ .header(CONTENT_LENGTH, 100)
550
.uri(format!(
551
"http://localhost:8000/subgraphs/id/{}",
552
subgraph_id
@@ -555,7 +556,7 @@ mod tests {
555
556
557
let response =
558
futures03::executor::block_on(service.call(request)).expect("Should return a response");
- let errors = test_utils::assert_error_response(response, StatusCode::BAD_REQUEST, false);
559
+ let errors = test_utils::assert_error_response(response, StatusCode::OK, false);
560
561
let message = errors[0].as_str().expect("Error message is not a string");
562
0 commit comments