diff --git a/bot/src/bluesky.rs b/bot/src/bluesky.rs index 175bb6d..664a47f 100644 --- a/bot/src/bluesky.rs +++ b/bot/src/bluesky.rs @@ -21,6 +21,7 @@ impl BlueSkyClient { let body = serde_json::to_string(&server_create_session)?; let token: Token = client .post("https://bsky.social/xrpc/com.atproto.server.createSession") + .header("Content-Type", "application/json") .body(body) .send() .await? @@ -43,6 +44,7 @@ impl BlueSkyClient { } self.client .post("https://bsky.social/xrpc/com.atproto.repo.createRecord") + .header("Content-Type", "application/json") .header( "Authorization", format!("Bearer, {}", self.auth_token.access_jwt), @@ -57,6 +59,7 @@ impl BlueSkyClient { let result: Token = self .client .post("https://bsky.social/xrpc/com.atproto.server.refreshSession") + .header("Content-Type", "application/json") .header( "Authorization", format!("Bearer, {}", self.auth_token.refresh_jwt), diff --git a/docker-compose.yaml b/docker-compose.yaml index e963429..ac13ad2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,4 +4,5 @@ services: container_name: bluesky-bot-local-redis image: redis/redis-stack-server:6.2.6-v17 ports: - - "6379:6379" \ No newline at end of file + - "6379:6379" + - "8001:8001" \ No newline at end of file