Skip to content

Commit 31ee50d

Browse files
committed
fix: remove client-only code that didn't compile and wasn't necessary
1 parent 0d1ed28 commit 31ee50d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

stackslib/src/net/httpcore.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,16 +1356,6 @@ impl StacksHttp {
13561356
&ConnectionOptions::default(),
13571357
);
13581358

1359-
if !self.allow_arbitrary_response {
1360-
let response_handler_index =
1361-
http.find_response_handler(verb, request_path)
1362-
.ok_or(NetError::SendError(format!(
1363-
"No such handler for '{} {}'",
1364-
verb, request_path
1365-
)))?;
1366-
http.request_handler_index = Some(response_handler_index);
1367-
}
1368-
13691359
let (preamble, message_offset) = http.read_preamble(response_buf)?;
13701360
let is_chunked = match preamble {
13711361
StacksHttpPreamble::Response(ref resp) => resp.is_chunked(),

0 commit comments

Comments
 (0)