Parakeet is a Rust-based Bluesky AppView aiming to implement most of the functionality required to support the Bluesky client

fix(did-resolver): need to prefix check content-type

Changed files
+6 -2
did-resolver
src
+6 -2
did-resolver/src/lib.rs
··· 130 130 .await? 131 131 .error_for_status()?; 132 132 133 - if let Some(ct) = res.headers().get(CONTENT_TYPE) { 134 - if ct != "text/plain" { 133 + if let Some(ct) = res 134 + .headers() 135 + .get(CONTENT_TYPE) 136 + .and_then(|ct| ct.to_str().ok()) 137 + { 138 + if !ct.starts_with("text/plain") { 135 139 return Ok(None); 136 140 } 137 141 }