Skip to content

Commit

Permalink
fix: missing blank line after multipart/formdata file import #57
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Jul 22, 2021
1 parent 66fc159 commit 38f7649
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file modified examples/assets/sample.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions examples/formats/multipartFormData.http
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

POST /post
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary
Content-Type: multipart/form-data; boundary=WebKitFormBoundary

------WebKitFormBoundary
--WebKitFormBoundary
Content-Disposition: form-data; name="text"

invoice_text
------WebKitFormBoundary
--WebKitFormBoundary
Content-Disposition: form-data; name="title"

invoice_title
------WebKitFormBoundary
--WebKitFormBoundary
Content-Disposition: form-data; name="invoice"; filename="invoice.pdf"
Content-Type: application/pdf

< ../assets/sample.pdf
------WebKitFormBoundary--
--WebKitFormBoundary--



Expand Down
1 change: 1 addition & 0 deletions src/actions/requestBodyImportAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class RequestBodyImportAction implements HttpRegionAction {
strings.length = 0;
}
body.push(line);
strings.push('');
}
}

Expand Down

0 comments on commit 38f7649

Please sign in to comment.