A library for ATProtocol identities.

fix: post apppassword bytes with headers expected json

Changed files
+3 -3
crates
atproto-client
src
+3 -3
crates/atproto-client/src/client.rs
··· 693 693 http_client: &reqwest::Client, 694 694 app_auth: &AppPasswordAuth, 695 695 url: &str, 696 - record: serde_json::Value, 696 + payload: Bytes, 697 697 additional_headers: &HeaderMap, 698 698 ) -> Result<Bytes> { 699 699 let mut headers = additional_headers.clone(); ··· 704 704 let http_response = http_client 705 705 .post(url) 706 706 .headers(headers) 707 - .json(&record) 707 + .body(payload) 708 708 .send() 709 - .instrument(tracing::info_span!("get_apppassword_bytes_with_headers", url = %url)) 709 + .instrument(tracing::info_span!("post_apppassword_bytes_with_headers", url = %url)) 710 710 .await 711 711 .map_err(|error| ClientError::HttpRequestFailed { 712 712 url: url.to_string(),