mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
fix(preheat): fix preheat task log display
Signed-off-by: chlins <chlins.zhang@gmail.com>
This commit is contained in:
parent
3d3fabbd20
commit
b008dffe70
@ -10,6 +10,7 @@ schemes:
|
||||
basePath: /api/v2.0
|
||||
produces:
|
||||
- application/json
|
||||
- text/plain
|
||||
consumes:
|
||||
- application/json
|
||||
securityDefinitions:
|
||||
@ -1145,6 +1146,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: Get log success
|
||||
headers:
|
||||
Content-Type:
|
||||
description: Content type of response
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
'400':
|
||||
|
@ -679,7 +679,7 @@ func (api *preheatAPI) GetLog(ctx context.Context, params operation.GetLogParams
|
||||
return api.SendError(ctx, err)
|
||||
}
|
||||
|
||||
return operation.NewGetLogOK().WithPayload(string(l))
|
||||
return operation.NewGetLogOK().WithPayload(string(l)).WithContentType("text/plain")
|
||||
}
|
||||
|
||||
// ListProvidersUnderProject is Get all providers at project level
|
||||
|
Loading…
Reference in New Issue
Block a user