Fix file path for bot download
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -404,7 +404,7 @@ func (h *TimesHandler) GetDownloadUrl(ctx *gin.Context) {
|
|||||||
|
|
||||||
// fetch download url from storage service
|
// fetch download url from storage service
|
||||||
// Build the full URL.
|
// Build the full URL.
|
||||||
fullURL, err := url.JoinPath(h.storageUrl, botData.FileID)
|
fullURL, err := url.JoinPath(h.storageUrl, "/v1/file/", botData.FileID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
statusCode := http.StatusInternalServerError
|
statusCode := http.StatusInternalServerError
|
||||||
errorMessage := "Error joining Url"
|
errorMessage := "Error joining Url"
|
||||||
|
|||||||
Reference in New Issue
Block a user