Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* cosmetic.

  • Loading branch information...
commit bb5ed6c7a53d9d47d90fb5b663bd74427764d21f 1 parent 14104a4
nahi authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 bench/bm_upload.rb
View
5 bench/bm_upload.rb
@@ -1,6 +1,5 @@
require 'bm_common'
-
-require 'multipart'
+try_require 'multipart'
url = ARGV.shift or raise
proxy = ENV['http_proxy'] || ENV['HTTP_PROXY']
@@ -92,7 +91,7 @@ def do_threads(number)
end
=end
- if defined?(Net::HTTP)
+ if defined?(Net::HTTP) and defined?(Net::HTTP::FileForPost)
bm.report('Net::HTTP + multipart') do
do_threads(threads) {
if proxy
Please sign in to comment.
Something went wrong with that request. Please try again.