Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kanad Gupta <[email protected]>
  • Loading branch information
erunion and kanadgupta authored Apr 8, 2024
1 parent f144eb5 commit 6d795f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class HTTPSnippet {

if (request.postData?.params) {
const boundary = '---011000010111000001101001'; // this is binary for "api" (easter egg)
const carraige = `${boundary}--`;
const carriage = `${boundary}--`;
const rn = '\r\n';

/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
Expand Down Expand Up @@ -222,7 +222,7 @@ export class HTTPSnippet {
}
});

payload.push(`--${carraige}`);
payload.push(`--${carriage}`);

request.postData.boundary = boundary;
request.postData.text = payload.join(rn);
Expand Down

0 comments on commit 6d795f1

Please sign in to comment.