Skip to content

Commit 5347a8b

Browse files
committed
Add JSON Headers
1 parent a3b4f42 commit 5347a8b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sasquatchbackpack/sasquatch.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,7 @@ async def direct_connect(self) -> None:
234234
payload = json.dumps({"value_schema": self.schema, "records": records})
235235
await prepared_publisher.publish(
236236
payload,
237-
headers={
238-
"Content-Type": "application/vnd.kafka.avro.v2+json",
239-
"Accept": "application/vnd.kafka.v2+json",
240-
},
237+
headers={"content-type": "application/json"},
241238
)
242239

243240
def post(self) -> tuple[str, list]:

0 commit comments

Comments
 (0)