modified 变更文件判定方式

This commit is contained in:
zhaoxiang 2021-11-16 19:54:46 +08:00
parent 68baf960b3
commit 9d40bc030b
1 changed files with 1 additions and 1 deletions
src/MiniProgram/QrCode

View File

@ -54,7 +54,7 @@ class Client extends BaseClient {
protected function getStream(string $endpoint, array $params) {
$response = $this->requestRaw($endpoint, 'POST', ['json' => $params]);
if (false !== stripos($response->getHeaderLine('Content-disposition'), 'attachment')) {
if (false !== stripos($response->getHeaderLine('Content-Type'), 'application/json')) {
return StreamResponse::buildFromPsrResponse($response);
}