瀏覽代碼

fix content type

tags/1.1
0nepeop1e 4 年之前
父節點
當前提交
e699731b0e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/MirfalahTransport.php

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

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

Loading…
取消
儲存