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 2e3f629 commit 3e88863Copy full SHA for 3e88863
src/server.rs
@@ -131,13 +131,10 @@ impl<T: Read + Write> ClientConnection<T> {
131
132
// Send an error response for the request that gave us the error.
133
let mut error_response = Response::new(Version::Http11, StatusCode::BadRequest);
134
- error_response.set_body(Body::new(
135
- format!(
136
- "{{ \"error\": \"{}\nAll previous unanswered requests will be dropped.\" }}",
137
- inner.to_string()
138
- )
139
- .to_string(),
140
- ));
+ error_response.set_body(Body::new(format!(
+ "{{ \"error\": \"{}\nAll previous unanswered requests will be dropped.\" }}",
+ inner.to_string()
+ )));
141
self.connection.enqueue_response(error_response);
142
}
143
Err(ConnectionError::InvalidWrite) => {
0 commit comments