objective categorical abstract machine language personal data server

Trim id resolver response

futur.blue 1a841c33 10af4f05

verified
+2 -2
+2 -2
pegasus/lib/id_resolver.ml
··· 15 15 if 16 16 String.starts_with ~prefix:"did:plc:" did 17 17 || String.starts_with ~prefix:"did:web:" did 18 - then Lwt.return_ok did 18 + then Lwt.return_ok (String.trim did) 19 19 else Lwt.return_error "invalid did in .well-known/atproto-did" 20 20 | _ -> 21 21 let%lwt () = Body.drain_body body in ··· 35 35 | ["did"; did] 36 36 when String.starts_with ~prefix:"did:plc:" did 37 37 || String.starts_with ~prefix:"did:web:" did -> 38 - Lwt.return_ok did 38 + Lwt.return_ok (String.trim did) 39 39 | _ -> 40 40 Lwt.return_error "invalid did in dns record" ) 41 41 | Error (`Msg e) ->