This is an automated email from the ASF dual-hosted git repository. rob pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit e205f282a9f94e15b0834978368becf7c75ba9a8 Author: Jan van Doorn <j...@knutsel.com> AuthorDate: Fri May 25 10:34:42 2018 -0600 Only print multipart header when needed. Testing works! --- grove/plugin/range_req_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grove/plugin/range_req_handler.go b/grove/plugin/range_req_handler.go index 0bd8e0c..25e21b8 100644 --- a/grove/plugin/range_req_handler.go +++ b/grove/plugin/range_req_handler.go @@ -179,7 +179,7 @@ func rangeReqHandleBeforeRespond(icfg interface{}, d BeforeRespondData) { bSlice := (*d.Body)[thisRange.Start : thisRange.End+1] body = append(body, bSlice...) } - if multipartBoundaryString != "" { + if multipart { body = append(body, []byte(fmt.Sprintf("\r\n--%s--\r\n", multipartBoundaryString))...) } d.Hdr.Set("Content-Length", fmt.Sprintf("%d", len(body))) -- To stop receiving notification emails like this one, please contact r...@apache.org.