Skip to content

Commit

Permalink
chore: add license
Browse files Browse the repository at this point in the history
Signed-off-by: KaKa <[email protected]>
  • Loading branch information
climba03003 authored Apr 6, 2024
1 parent c50bc5f commit 031c36d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/form-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ function isFormDataLike (payload) {
)
}

/*
partial code extraction and refactoring of `undici`.
MIT License. https://github.com/nodejs/undici/blob/043d8f1a89f606b1db259fc71f4c9bc8eb2aa1e6/lib/web/fetch/LICENSE
Reference https://github.com/nodejs/undici/blob/043d8f1a89f606b1db259fc71f4c9bc8eb2aa1e6/lib/web/fetch/body.js#L102-L168
*/
function formDataToStream (formdata) {
// lazy creation of TextEncoder
textEncoder = textEncoder ?? new TextEncoder()
Expand Down

0 comments on commit 031c36d

Please sign in to comment.