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

the question about rewrite body. #28

Open
wangfeng22 opened this issue Jun 20, 2022 · 0 comments
Open

the question about rewrite body. #28

wangfeng22 opened this issue Jun 20, 2022 · 0 comments

Comments

@wangfeng22
Copy link

wangfeng22 commented Jun 20, 2022

Do you consider the situation when http Transfer-encoding is chunked?
For example:
regex = "Hello"
replace= "Hi"

HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Transfer-Encoding: chunked\r\n
\r\n
1B\r\n
Hello world! I love Mozilla\r\n
9\r\n
Developer\r\n
7\r\n
Network\r\n
0\r\n
\r\n

=>

HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Transfer-Encoding: chunked\r\n
\r\n
1B\r\n
Hi world! I love Mozilla\r\n
9\r\n
Developer\r\n
7\r\n
Network\r\n
0\r\n
\r\n
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

1 participant