From 74d42637e7e7d097035a4c509472b0fddbbd27b3 Mon Sep 17 00:00:00 2001 From: risqy Date: Sun, 6 Aug 2023 19:11:59 +0200 Subject: [PATCH] v0.0.222 forgot status code --- ginext/response.go | 4 ++-- goextVersion.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"