mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-08 14:03:24 +09:00
chore: drop "oidc_wellknown" tmpl, use json directly (#38731)
`testOAuth2WellKnown` already covers the endpoint's response.
This commit is contained in:
@@ -360,7 +360,7 @@ func UploadHandler(ctx *context.Context) {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
log.Error("Unable to check if LFS OID[%s] stat. Error: %v", p.Oid, err)
|
||||
log.Error("Unable to check LFS OID[%s] stat. Error: %v", p.Oid, err)
|
||||
return err
|
||||
}
|
||||
_, err = git_model.NewLFSMetaObject(ctx, repository.ID, p)
|
||||
@@ -378,10 +378,10 @@ func UploadHandler(ctx *context.Context) {
|
||||
}
|
||||
// Do not remove the LFS MetaObject here: this request only creates it after the content is verified and stored,
|
||||
// an invalid request should not remove the existing correct record.
|
||||
// If two requests are loading (the file is incomplete):
|
||||
// If two requests are uploading (the file is incomplete):
|
||||
// * one will keep writing the file content
|
||||
// * one will fail the verification because it reads an incomplete file, the failure should be just ignore
|
||||
// In the end, the first one will complete the upload and insert a LFS MetaObject record.
|
||||
// * one will fail the verification because it reads an incomplete file, the failure should be just be ignored
|
||||
// In the end, the first one will complete the upload and insert a new LFS MetaObject record.
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user