Skip to content

Commit 9e9082d

Browse files
authored
Merge pull request #1 from ackintosh/content-type
Set Content-Type header to avoid "415 Unsupported Media Type" error
2 parents f442006 + 48e5821 commit 9e9082d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppCore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function request()
6363
}
6464

6565
$is_raw = $params['format'] == 'raw';
66-
$result = $client->execute($params['method'], $args, $reqattrs = [], $requestId = null, $headers = [], $is_raw, $params['resultonly']);
66+
$result = $client->execute($params['method'], $args, $reqattrs = [], $requestId = null, $headers = ['Content-Type' => 'application/json'], $is_raw, $params['resultonly']);
6767

6868
$map = [HttpClient::level_info => MyLogger::info,
6969
HttpClient::level_debug => MyLogger::debug,

0 commit comments

Comments
 (0)