well we have to copy...

This commit is contained in:
6543 2022-06-11 23:52:31 +02:00
parent c00fb87ae9
commit a9f63de328
2 changed files with 4 additions and 2 deletions

View file

@ -30,8 +30,9 @@ type FileResponse struct {
}
func joinURL(baseURL *url.URL, paths ...string) string {
baseURL.Path = path.Join(append([]string{baseURL.Path}, paths...)...)
return baseURL.String()
b := *baseURL
b.Path = path.Join(append([]string{b.Path}, paths...)...)
return b.String()
}
func (f FileResponse) IsEmpty() bool { return len(f.Body) != 0 }