Skip to content

Commit e3e69b7

Browse files
committed
fix: test were broken due to wrong json fixture
1 parent e145fca commit e3e69b7

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎test/fixtures/files/hello.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
curl --request POST \
22
--url "http://mockbin.com/har" \
33
--header "Content-Type: multipart/form-data" \
4-
--form "foo=hello world"
4+
--form "foo=Hello World"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
http POST http://mockbin.com/har \
22
Content-Type:multipart/form-data \
3-
foo:hello world
3+
foo:Hello World

‎test/fixtures/output/ocaml/cohttp/multipart-file.ml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let uri = Uri.of_string "http://mockbin.com/har" in
55
let headers = Header.init ()
66
|> fun h -> Header.add h "Content-Type" "multipart/form-data"
77
in
8-
let body = "foo=hello world" in
8+
let body = "foo=Hello World" in
99

1010
Client.call ~headers ~body (Code.method_of_string "POST") uri
1111
>>= fun (res, body_stream) ->

‎test/fixtures/requests/multipart-file.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"params": [
1313
{
1414
"name": "foo",
15-
"fileName": "fixtures/files/hello.txt",
15+
"value": "Hello World",
16+
"fileName": "hello.txt",
1617
"contentType": "text/plain"
1718
}
1819
]

0 commit comments

Comments
 (0)