multipart: Force a CRLF at the end of request

This commit is contained in:
kennytm
2018-07-18 07:34:59 +08:00
committed by Sean McArthur
parent c1c5f14b7c
commit a52520941f
2 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ fn test_multipart() {
--{0}\r\n\
Content-Disposition: form-data; name=\"foo\"\r\n\r\n\
bar\r\n\
--{0}--\
--{0}--\r\n\
", form.boundary());
let server = server! {
@@ -24,7 +24,7 @@ fn test_multipart() {
user-agent: $USERAGENT\r\n\
accept: */*\r\n\
content-type: multipart/form-data; boundary={}\r\n\
content-length: 123\r\n\
content-length: 125\r\n\
accept-encoding: gzip\r\n\
host: $HOST\r\n\
\r\n\