소스 검색

Use explicit JSON body.

scossu 5 달 전
부모
커밋
2cf7352335
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
             })