fix(preheat): fix preheat task log display

Signed-off-by: chlins <chlins.zhang@gmail.com>
This commit is contained in:
chlins 2020-08-03 09:45:18 +08:00
parent 3d3fabbd20
commit b008dffe70
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,7 @@ schemes:
basePath: /api/v2.0 basePath: /api/v2.0
produces: produces:
- application/json - application/json
- text/plain
consumes: consumes:
- application/json - application/json
securityDefinitions: securityDefinitions:
@ -1145,6 +1146,10 @@ paths:
responses: responses:
'200': '200':
description: Get log success description: Get log success
headers:
Content-Type:
description: Content type of response
type: string
schema: schema:
type: string type: string
'400': '400':

View File

@ -679,7 +679,7 @@ func (api *preheatAPI) GetLog(ctx context.Context, params operation.GetLogParams
return api.SendError(ctx, err) 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 // ListProvidersUnderProject is Get all providers at project level