Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$done({body: modifiedBody, status: modifiedStatus}) 方法 不可用 #44

Open
KleinerSource opened this issue Aug 30, 2020 · 1 comment

Comments

@KleinerSource
Copy link

sample-rewrite-with-script.js 中的描述

// You can optional change the response headers at the same time by using $done({body: modifiedBody, headers: modifiedHeaders}); only change the response headers is not allowed for script-response-body. The modifiedHeaders can be copied and modified from $response.headers, please do not change the content length, type and encoding field.
// Response status can also be optional changed by using $done({body: modifiedBody, headers: modifiedHeaders, status: modifiedStatus}), the modifiedStatus should be like "HTTP/1.1 200 OK"

不工作.

@hiangeel
Copy link

hiangeel commented Feb 4, 2022

I tried modifiedStatus as a number 200 or a string "HTTP/1.1 200 OK", both did not work.
I don't know does anyone take care this repository. Many complains as well as issues, but it seems the dev does not care about these problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants