mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-16 16:17:38 +03:00
A follow-up test for the PR #135
This commit is contained in:
@@ -573,6 +573,9 @@ func TestRequestMultipartFormBoundary(t *testing.T) {
|
||||
// boundary after other content-type params
|
||||
testRequestMultipartFormBoundary(t, "POST / HTTP/1.1\r\nContent-Type: multipart/form-data; foo=bar; boundary=--aaabb \r\n\r\n", "--aaabb")
|
||||
|
||||
// quoted boundary
|
||||
testRequestMultipartFormBoundary(t, "POST / HTTP/1.1\r\nContent-Type: multipart/form-data; boundary=\"foobar\"\r\n\r\n", "foobar")
|
||||
|
||||
var h RequestHeader
|
||||
h.SetMultipartFormBoundary("foobarbaz")
|
||||
b := h.MultipartFormBoundary()
|
||||
|
||||
Reference in New Issue
Block a user