Browse Source

Use explicit JSON body.

scossu 4 months ago
parent
commit
2cf7352335
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scriptshifter/hooks/hebrew/dicta_api.py

+ 1 - 1
scriptshifter/hooks/hebrew/dicta_api.py

@@ -16,7 +16,7 @@ def s2r_post_config(ctx):
     ctx.warnings = []
     rsp = post(
             EP,
-            data={
+            json={
                 "data": ctx.src,
                 "genre": ctx.options.get("genre", DEFAULT_GENRE)
             })