diff --git a/src/sender/sender.go b/src/sender/sender.go index 70c3db6..95ba662 100644 --- a/src/sender/sender.go +++ b/src/sender/sender.go @@ -107,6 +107,8 @@ func prepareDirectoryPayload(baseURL, directory string) (string, string, error) return "", "", fmt.Errorf("no files with supported extensions to serve") } + strings.TrimSuffix(payloadBuilder.String(), "\n") + return payloadBuilder.String(), directory, nil }