mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-02 10:41:59 +01:00
All redirect operations should have content-type as json
Signed-off-by: gklp <gokalpkuscu@gmail.com>
This commit is contained in:
parent
88f706cff6
commit
44a9e5d127
@ -112,6 +112,7 @@ func (b *BaseAPI) Redirect(statusCode int, resouceID string) {
|
||||
requestURI := b.Ctx.Request.RequestURI
|
||||
resourceURI := requestURI + "/" + resouceID
|
||||
|
||||
b.Ctx.ResponseWriter.Header().Set("Content-Type", "application/json")
|
||||
b.Ctx.Redirect(statusCode, resourceURI)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user