Use upload urls instead of assets url

This commit is contained in:
Kevin Sawicki 2014-01-14 12:54:30 -08:00
parent 96cb266c27
commit 6ca3c90abe

View File

@ -139,7 +139,7 @@ createRelease = (callback) ->
uploadAsset = (release, callback) ->
options =
uri: "#{release.assets_url}?name=#{assetName}"
uri: release.upload_url.replace(/\{.*$/, "?name=#{assetName}")
method: 'POST'
headers: _.extend({
'Content-Type': 'application/zip'