1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

Merge pull request #1524 from fracting/full_log

controller: Properly parse "full" query in GetBuildLogs.
This commit is contained in:
Brad Rydzewski 2016-03-20 22:54:40 -07:00
commit 1360311e76

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.