modified 变更文件判定方式
This commit is contained in:
parent
68baf960b3
commit
9d40bc030b
src/MiniProgram/QrCode
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue