We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63175fb commit bab16f2Copy full SHA for bab16f2
1 file changed
crates/uv-client/src/cached_client.rs
@@ -26,13 +26,6 @@ use crate::{
26
///
27
/// Note: This consumes the response body, so it should only be called when there's an error status.
28
async fn extract_problem_details(response: Response) -> Option<ProblemDetails> {
29
- // Check if the response has the RFC 9457 content type
30
- let content_type = response.headers().get("content-type")?.to_str().ok()?;
31
-
32
- if !content_type.starts_with("application/problem+json") {
33
- return None;
34
- }
35
36
// Try to read the response body and parse it as problem details
37
match response.bytes().await {
38
Ok(bytes) => ProblemDetails::from_json(&bytes).ok(),
0 commit comments