File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 8
8
- 5.5
9
9
- 5.6
10
10
before_script :
11
- - export QINIU_ACCESS_KEY="QWYn5TFQsLLU1pL5MFEmX3s5DmHdUThav9WyOWOm"
12
- - export QINIU_SECRET_KEY="Bxckh6FA-Fbs9Yt3i3cbKVK22UPBmAOHJcL95pGz"
13
- - export QINIU_TEST_BUCKET="phpsdk"
14
- - export QINIU_TEST_KEY="php-logo.png"
15
11
- export QINIU_TEST_ENV="travis"
16
12
- travis_retry composer self-update
17
13
- travis_retry composer install --no-interaction --prefer-source --dev
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ public function needRetry()
169
169
170
170
private static function isJson ($ headers )
171
171
{
172
- return isset ($ headers ['Content-Type ' ]) && $ headers ['Content-Type ' ] == 'application/json ' ;
172
+ return isset ($ headers ['Content-Type ' ]) &&
173
+ strpos ($ headers ['Content-Type ' ], 'application/json ' ) === 0 ;
173
174
}
174
175
}
Original file line number Diff line number Diff line change 4
4
5
5
use Qiniu \Auth ;
6
6
7
- $ accessKey = getenv ( ' QINIU_ACCESS_KEY ' ) ;
8
- $ secretKey = getenv ( ' QINIU_SECRET_KEY ' ) ;
7
+ $ accessKey = ' QWYn5TFQsLLU1pL5MFEmX3s5DmHdUThav9WyOWOm ' ;
8
+ $ secretKey = ' Bxckh6FA-Fbs9Yt3i3cbKVK22UPBmAOHJcL95pGz ' ;
9
9
$ testAuth = new Auth ($ accessKey , $ secretKey );
10
- $ bucketName = getenv ( ' QINIU_TEST_BUCKET ' ) ;
11
- $ key = getenv ( ' QINIU_TEST_KEY ' ) ;
10
+ $ bucketName = ' phpsdk ' ;
11
+ $ key = ' php-logo.png ' ;
12
12
13
13
$ dummyAccessKey = 'abcdefghklmnopq ' ;
14
14
$ dummySecretKey = '1234567890 ' ;
You can’t perform that action at this time.
0 commit comments