Skip to content

Commit

Permalink
Fix missing Content-Type header
Browse files Browse the repository at this point in the history
  • Loading branch information
sghpjuikit committed Jan 19, 2025
1 parent 1d446a3 commit b8e0913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/speech-recognition-whisper/util_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def loop():
while True:
try:
event = self.queue.get(block=True, timeout=0.2)
response = requests.post(self.address, data=json.dumps(event))
response = requests.post(self.address, headers = {'Content-Type': 'application/json'}, data=json.dumps(event))
except Empty:
continue
except Exception as e:
Expand Down

0 comments on commit b8e0913

Please sign in to comment.