1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-17 17:45:03 +02:00

controller: Properly parse "full" query in GetBuildLogs.

This commit is contained in:
Qian Hong 2016-03-16 11:35:59 +08:00
parent 1937cea395
commit cb7102ebc7

View File

@ -82,7 +82,7 @@ func GetBuildLogs(c *gin.Context) {
// the user may specify to stream the full logs,
// or partial logs, capped at 2MB.
full, _ := strconv.ParseBool(c.Params.ByName("full"))
full, _ := strconv.ParseBool(c.DefaultQuery("full", "false"))
// parse the build number and job sequence number from
// the repquest parameter.