Переглянути джерело

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
     }

Завантаження…
Відмінити
Зберегти