mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: 支持调整stdio缓冲区大小
This commit is contained in:
1 parent
91f364d1b9
commit
bb856bacce
9 files changed
+24
-16
No files matched your search
@@ -468,11 +468,12 @@ export class ProblemFilesHandler extends ProblemDetailHandler {
|
||||
}
|
||||
|
||||
export class ProblemFileDownloadHandler extends ProblemDetailHandler {
|
||||
@param('filename')
|
||||
async get(domainId: string, filename: string) {
|
||||
@param('filename', Types.String)
|
||||
@param('noDisposition', Types.Boolean)
|
||||
async get(domainId: string, filename: string, noDisposition = false) {
|
||||
this.response.redirect = await storage.signDownloadLink(
|
||||
`problem/${this.pdoc.domainId}/${this.pdoc.docId}/additional_file/${filename}`,
|
||||
filename, false, 'user',
|
||||
noDisposition ? undefined : filename, false, 'user',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user