Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1
zouap 4 years ago
parent
commit
35c83d5b39
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/attachment.go

+ 1
- 1
routers/repo/attachment.go View File

@@ -286,7 +286,6 @@ func GetAttachment(ctx *context.Context) {
return
}
defer fr.Close()
log.Info("go here to download.")
if err = increaseDownloadCount(attach, dataSet); err != nil {
ctx.ServerError("Update", err)
return
@@ -673,6 +672,7 @@ func PutOBSProxyUpload(ctx *context.Context) {
fileName := ctx.Query("file_name")

RequestBody := ctx.Req.Body()

if RequestBody == nil {
ctx.Error(500, fmt.Sprintf("FormFile: %v", RequestBody))
return


Loading…
Cancel
Save