We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca00b3f commit b354adeCopy full SHA for b354ade
doc/body.go
@@ -73,7 +73,7 @@ func (b *Body) SanitizedMultipartForm() string {
73
return string(b.Content)
74
}
75
boundary := matches[1]
76
- parts := bytes.Split(b.Content, []byte(boundary))
+ parts := bytes.Split(b.Content, []byte("--"+boundary))
77
78
for i, p := range parts {
79
fileMatches := multipartFileRE.FindSubmatch(p)
@@ -83,6 +83,6 @@ func (b *Body) SanitizedMultipartForm() string {
83
84
85
86
- out := string(bytes.Join(parts, []byte(boundary)))
+ out := string(bytes.Join(parts, []byte("--"+boundary)))
87
return strings.Replace(out, "\n", "\n ", -1)
88
0 commit comments