mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 08:35:53 +03:00
[GH-ISSUE #585] Local Map error #582
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yaroslavyaroslav on GitHub (Aug 18, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/585
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
2.4.1
macOS Version? (Ex. mac 10.14)
macOS 10.15.6
Steps to reproduce
Create map local rule with following content:
It'll will show that the content is broken. (and response on the request with broken one). If you delete one letter (any) in json it will show that the content is correct.
Seems that there's some content length problem.
Expected behavior
It should not corrupt long responses.
Screenshots (optional)
@NghiaTranUIT commented on GitHub (Aug 19, 2020):
Thanks. I understand your problem. The problem is your Content-Length doesn't match with the body's length.
I'm using HTTPParser to parse this HTTP Message, let see how can I modify the code and ignore the Check condition on the Content-Length 👍
@NghiaTranUIT commented on GitHub (Aug 19, 2020):
Hi @yaroslavyaroslav, after investigation, I suppose that it's a correct behavior. Because you explicitly define the number of Content-Length and it doesn't match with the Body's length -> Thus, you get the error as expected.
If I follow you suggestion, it's incorrect since the HTTP Message requires the ContentLength must be equal with the Body Length.
I will improve the error message, so make it's clearer to the users
On the other hand, If you create the Map Local by Right-Click on the Request -> Tools -> Map Local -> Proxyman will attempt to remove:
because it causes unexpected trouble, but it will add later when composing the final Response.
@NghiaTranUIT commented on GitHub (Aug 19, 2020):
If you would try a beta build: Here you go https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.4.1_Better_ContentLength_Error_Message.dmg 👍
@yaroslavyaroslav commented on GitHub (Aug 19, 2020):
Oh, my bad, haven't checked headers well. Yep, in that case I think more precise error message will be great. Thank you.
@NghiaTranUIT commented on GitHub (Aug 19, 2020):
Don't worry. Glad to know that it resolves your case 🎉