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
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':

View File

@ -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