v0.0.222 forgot status code
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user