fix: исправить генерацию PS1 скрипта (getBody вместо Nyholm)
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
c2c9934ff8
commit
066a18788d
|
|
@ -543,10 +543,10 @@ systemctl status server-monitor-agent
|
||||||
|
|
||||||
$script = implode("\n", $lines) . "\n";
|
$script = implode("\n", $lines) . "\n";
|
||||||
|
|
||||||
|
$response->getBody()->write($script);
|
||||||
return $response
|
return $response
|
||||||
->withHeader('Content-Type', 'text/plain; charset=UTF-8')
|
->withHeader('Content-Type', 'text/plain; charset=UTF-8')
|
||||||
->withHeader('Content-Disposition', 'attachment; filename="install.ps1"')
|
->withHeader('Content-Disposition', 'attachment; filename="install.ps1"');
|
||||||
->withBody(\Nyholm\Psr7\Utils::streamFor($script));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue