Explorar el Código

Use explicit JSON body.

scossu hace 5 meses
padre
commit
2cf7352335
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
             })