Tweak CurlPostDownloadStrategy
This commit is contained in:
parent
4490b739d5
commit
aac072c47a
@ -127,11 +127,8 @@ private
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Download via an HTTP POST.
|
# Download via an HTTP POST.
|
||||||
|
# Query parameters on the URL are converted into POST parameters
|
||||||
class CurlPostDownloadStrategy <CurlDownloadStrategy
|
class CurlPostDownloadStrategy <CurlDownloadStrategy
|
||||||
def initialize url, name, version, specs
|
|
||||||
super
|
|
||||||
end
|
|
||||||
|
|
||||||
def _fetch
|
def _fetch
|
||||||
base_url,data = @url.split('?')
|
base_url,data = @url.split('?')
|
||||||
curl base_url, '-d', data, '-o', @tarball_path
|
curl base_url, '-d', data, '-o', @tarball_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user