From 5c2b6256daa18a206a1ebf82f9061b9123dedd5b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 12 Jul 2016 09:37:39 +0300 Subject: [PATCH] A follow-up test for the PR #135 --- header_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/header_test.go b/header_test.go index 00869b4..b3e457d 100644 --- a/header_test.go +++ b/header_test.go @@ -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()