We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2bf3978 + 0328550 commit 44c732bCopy full SHA for 44c732b
cloudflare-worker.js
@@ -34,7 +34,7 @@ async function handleRequest(request) {
34
35
// 入参中如果包含了 stream=true,则表现形式为非流式输出
36
const response = await fetch(fetchAPI, payload);
37
- if (body && body.stream && body.stream === false) {
+ if (body && body.stream !== true) {
38
const results = await response.json();
39
return new Response(JSON.stringify(results), {
40
status: response.status,
0 commit comments