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 d64adbb commit 8ebfbd0Copy full SHA for 8ebfbd0
crates/pbs/src/routes/get_header.rs
@@ -38,11 +38,7 @@ pub async fn handle_get_header<S: BuilderApiState, A: BuilderApi<S>>(
38
let accept_types = get_accept_types(&req_headers).map_err(|e| {
39
error!(%e, "error parsing accept header");
40
PbsClientError::DecodeError(format!("error parsing accept header: {e}"))
41
- });
42
- if let Err(e) = accept_types {
43
- return Ok((StatusCode::BAD_REQUEST, e).into_response());
44
- }
45
- let accept_types = accept_types.unwrap();
+ })?;
46
47
info!(ua, ms_into_slot, "new request");
48
0 commit comments