From cb7102ebc7861d711aeba563953859d6bb24b8cd Mon Sep 17 00:00:00 2001 From: Qian Hong Date: Wed, 16 Mar 2016 11:35:59 +0800 Subject: [PATCH] controller: Properly parse "full" query in GetBuildLogs. --- controller/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/build.go b/controller/build.go index 7680fe103..05e8bbb70 100644 --- a/controller/build.go +++ b/controller/build.go @@ -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.