Skip to content

Commit

Permalink
{?name} -> {?name,label}
Browse files Browse the repository at this point in the history
  • Loading branch information
importre committed Sep 11, 2015
1 parent 6684004 commit 0b1c32c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/groovy/co/riiid/gradle/ReleaseTask.groovy
Expand Up @@ -61,7 +61,10 @@ class ReleaseTask extends DefaultTask {
name += ".zip"
}

def upload = uploadUrl.replace('{?name}', "?name=${name}")
def upload = uploadUrl.replace(
'{?name,label}', "?name=${name}&label=${name}")
println "upload url: ${upload}"

def url = new URL(upload as String)
def host = url.host + (url.port > 0 ? ":" + url.port + "" : "")
host = "${url.protocol}://${host}"
Expand Down

0 comments on commit 0b1c32c

Please sign in to comment.