Skip to content

Commit

Permalink
php7兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
束林飞 committed Aug 29, 2019
1 parent cfc37b9 commit 579f016
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Requester.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ protected function createRequest ($http_method, $path, $headers = array(), $para
// 准备query, headers, postData
$query = array();
$postData = array();
$headers = !empty($headers) && is_array($headers) ? $headers : array();

$headers['Pragma'] = 'no-cache';
$headers['Cache-Control'] = 'no-cache';
Expand Down

0 comments on commit 579f016

Please sign in to comment.