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
Support FormData without known length #2120
Support FormData without known length #2120
Conversation
…t forms without known length.
Some tests are failing, but they are not related to the PR. I don't know why is this happening. |
Try to rebase from the |
Yeh, now it seem to fail because of typescript choosing the last overload for functions. UPD: I think the fix is rather simple, so I'll do it now as the pify documentation suggests |
@@ -68,7 +69,7 @@ const createHttpsTestServer = async (options: HttpsServerOptions = {}): Promise< | |||
|
|||
await pify(server.https.listen.bind(server.https))(); | |||
|
|||
server.caKey = caKey; | |||
server.caKey = caKey as any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure what the exact meaning of this code, so I just added as any
in case if this assignment was without type casting to Buffer by intention. Or should I convert it to Buffer
?
Thanks! |
This PR updates fixes support for FormData instances without known length. In detail:
form-data-encoder
dependency to version 2.1.0;FormDataEncoder
instance;got.post
requests usingFormData
without known length.Fixes #2111
Checklist