浏览代码

fix content type

tags/1.1
0nepeop1e 5 年前
父节点
当前提交
e699731b0e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/MirfalahTransport.php

+ 3
- 0
src/MirfalahTransport.php 查看文件

79
                 'apiKey' => $this->apiKey,
79
                 'apiKey' => $this->apiKey,
80
                 'signature' => hash_hmac('sha1', $body, $this->secret),
80
                 'signature' => hash_hmac('sha1', $body, $this->secret),
81
             ],
81
             ],
82
+            RequestOptions::HEADERS => [
83
+                'Content-Type' => 'text/plain; charset=utf-8',
84
+            ],
82
             RequestOptions::BODY => $body,
85
             RequestOptions::BODY => $body,
83
         ]);
86
         ]);
84
     }
87
     }

正在加载...
取消
保存