lesspainful 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lesspainful/cli.rb +3 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
data/lib/lesspainful/cli.rb
CHANGED
@@ -377,7 +377,9 @@ module LessPainful
|
|
377
377
|
|
378
378
|
def http_post(address, args, &block)
|
379
379
|
if block_given?
|
380
|
-
response = RestClient.post "#{host}/#{address}",
|
380
|
+
response = RestClient::Request.execute(:method => :post, :url => "#{host}/#{address}", :payload => args,
|
381
|
+
:timeout => -1,
|
382
|
+
:headers => {:content_type => "multipart/form-data"}) do |response, request, result, &other_block|
|
381
383
|
block.call(response, request, result, &other_block)
|
382
384
|
end
|
383
385
|
else
|
data/lib/version.rb
CHANGED