瀏覽代碼

Correcting cEcho to be a POST

Andrej 1 月之前
父節點
當前提交
68ce58b525
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      orthancQR.py

+ 1 - 1
orthancQR.py

@@ -24,7 +24,7 @@ class orthancQR:
    def cEcho(self,name):
       apiURL='/'.join([self.net.getCoreURL(),'modalities',name,'echo'])
       v={}
-      response=self.net.get(apiURL)
+      response=self.net.post(apiURL,json.dumps(v),'json')
       #OK if empty,JSON if fail
       return orthancDatabaseBrowser.extractJSON(response.data)