This commit is contained in:
abs3nt 2024-11-06 19:50:15 -08:00
parent c3a87c62c8
commit b732730c03
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

View File

@ -107,6 +107,8 @@ func prepareDirectoryPayload(baseURL, directory string) (string, string, error)
return "", "", fmt.Errorf("no files with supported extensions to serve") return "", "", fmt.Errorf("no files with supported extensions to serve")
} }
strings.TrimSuffix(payloadBuilder.String(), "\n")
return payloadBuilder.String(), directory, nil return payloadBuilder.String(), directory, nil
} }