From 0a1099644e4f3a42afc2191bc21be18b6282b9df Mon Sep 17 00:00:00 2001 From: Alberto Gallardo Date: Wed, 17 Feb 2016 14:44:01 +0100 Subject: [PATCH] Do not override existing baseUrl path GitHub Enterprise API is usually under `https://.../api/v3`. The request shouldn't override the `/api/v3` path. --- src/main/groovy/co/riiid/gradle/ReleaseTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/co/riiid/gradle/ReleaseTask.groovy b/src/main/groovy/co/riiid/gradle/ReleaseTask.groovy index 828e535..f2a0180 100644 --- a/src/main/groovy/co/riiid/gradle/ReleaseTask.groovy +++ b/src/main/groovy/co/riiid/gradle/ReleaseTask.groovy @@ -32,7 +32,7 @@ class ReleaseTask extends DefaultTask { ] http.request(Method.POST) { - uri.path = path + uri.path += path requestContentType = ContentType.JSON body = postBody