diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-09 07:04:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-09 09:55:04 +0000 |
commit | b96d1018ae5261d8ee9344b959acb04c1be43279 (patch) | |
tree | 1681ca61673508fc0fbf6407c648527626710e54 /test/test_helper.rb | |
parent | 7d740e5825e05030b5978ed296fd0b801666b405 (diff) | |
download | cmogstored-b96d1018ae5261d8ee9344b959acb04c1be43279.tar.gz |
Unused variables and unset Content-Type for Net::HTTP requests
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index e28d863..0573964 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -46,3 +46,9 @@ def get_client(tries = 300, port = @port) end end while true end + +def new_req(meth, path) + r = Net::HTTP.const_get(meth).new(path) + r.content_type = "application/octet-stream" + r +end |