diff --git a/ginext/response.go b/ginext/response.go index aec192d..eafe6e4 100644 --- a/ginext/response.go +++ b/ginext/response.go @@ -191,8 +191,8 @@ func Download(mimetype string, filepath string, filename string) HTTPResponse { return &fileHTTPResponse{mimetype: mimetype, filepath: filepath, filename: &filename} } -func DownloadData(mimetype string, filename string, data []byte) HTTPResponse { - return &downloadDataHTTPResponse{mimetype: mimetype, data: data, filename: &filename} +func DownloadData(status int, mimetype string, filename string, data []byte) HTTPResponse { + return &downloadDataHTTPResponse{statusCode: status, mimetype: mimetype, data: data, filename: &filename} } func Redirect(sc int, newURL string) HTTPResponse { diff --git a/goextVersion.go b/goextVersion.go index bb14f3b..aaef1b8 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.221" +const GoextVersion = "0.0.222" -const GoextVersionTimestamp = "2023-08-06T19:10:31+0200" +const GoextVersionTimestamp = "2023-08-06T19:11:59+0200"