Skip to content

Commit

Permalink
Add trailer test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstrk committed Apr 30, 2024
1 parent 79866ba commit 64e9603
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_data/http/single_field_with_trailer.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
------WebKitFormBoundaryTkr3kCBQlBe1nrhc
Content-Disposition: form-data; name="field"

This is a test.
------WebKitFormBoundaryTkr3kCBQlBe1nrhc--
this trailer causes a warning
but should be ignored
6 changes: 6 additions & 0 deletions tests/test_data/http/single_field_with_trailer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
boundary: ----WebKitFormBoundaryTkr3kCBQlBe1nrhc
expected:
- name: field
type: field
data: !!binary |
VGhpcyBpcyBhIHRlc3Qu

0 comments on commit 64e9603

Please sign in to comment.