v0.0.222 forgot status code

This commit is contained in:
Julian Graf 2023-08-06 19:11:59 +02:00
parent 0c05bcf29b
commit 74d42637e7
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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"