-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
version 3.6.0 breaks Electron 80 (Chromium 80) #922
Comments
Could you please post a small piece of code which would reproduce the problem you are seeing? With a small example, I should be able to help fix this issue. Without one, I will struggle a lot. |
Well the issue seems to be with this line of code (line 246) because we are modifying the contents of Then you are saying you are going to "save" the original body content into SImply making this assignment on line 227 (
Then changing line 262 (5c6b055#diff-3fc6f1265a180d15035618e36ca1da88d092bacb4fc10a423938fa62e4f5f58fR262) to
Also fixes the issue. However, that is very much a hack for what is a very convoluted conditional branch tree that really should just be re-worked altogether. There's too much leaky logic going on in there. |
This was fixed in https://github.com/github/fetch/releases/tag/v3.6.2 |
What are this things ?? |
Verified that
POST
request works prior to upgrading to whatwg-fetech 3.6.0. Behavior the same with 3.6.1. Afterwards, with no other changes, we can see server receive Content-Length of 0 and empty body.I found the offending line of code, simply commenting it out fixes things:
5c6b055#r47472637
The branch system above is quite convoluted, but I think if you can ensure the original body is preserved when you assign here, things will still work. From what I can tell, my code was hitting the final branch (5c6b055#diff-3fc6f1265a180d15035618e36ca1da88d092bacb4fc10a423938fa62e4f5f58fR246) and body being re-assigned there. But I tried a simple case of removing the body assignment there, and using body as the assignment instead on line 262, but it doesn't work. Making a new variable
var origBody = body
at the top of the branches and assigning that on line 262 does work however.So probably want to look at cleaning up those branches. In the meantime, will be stuck at v3.5
The text was updated successfully, but these errors were encountered: