Skip to content

Commit 3038a77

Browse files
committed
Remove require 'openssl' from ruby target (no longer needed)
(Cherry-picked from upstream)
1 parent 3c5fe71 commit 3038a77

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/targets/ruby/native.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ module.exports = function (source, options) {
77

88
code.push('require \'uri\'')
99
.push('require \'net/http\'')
10-
11-
if (source.uriObj.protocol === 'https:') {
12-
code.push('require \'openssl\'')
13-
}
14-
1510
code.blank()
1611

1712
// To support custom methods we check for the supported methods

test/fixtures/output/ruby/native/https.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require 'uri'
22
require 'net/http'
3-
require 'openssl'
43

54
url = URI("https://mockbin.com/har")
65

test/targets/ruby/native.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ module.exports = function (HTTPSnippet, fixtures) {
99
result.should.be.a.String()
1010
result.should.eql(`require 'uri'
1111
require 'net/http'
12-
require 'openssl'
1312
1413
url = URI("https://mockbin.com/har")
1514

0 commit comments

Comments
 (0)