Skip to content

Commit f36fa51

Browse files
authored
Merge pull request #81 from rubyfu/noraj-patch-2
URI is required on newer version
2 parents 157f9e8 + 60e7145 commit f36fa51

File tree

1 file changed

+1
-1
lines changed
  • module-0x4-or-web-kung-fu/web-services-and-apis/interacting-with-apis

1 file changed

+1
-1
lines changed

module-0x4-or-web-kung-fu/web-services-and-apis/interacting-with-apis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ json_res = JSON.parse(Net::HTTP.get(URI.parse "http://api.stackexchange.com/2.2/
1515
```ruby
1616
require 'open-uri'
1717
require 'json'
18-
JSON.parse(open('https://api.ipify.org?format=json').read)["ip"]
18+
JSON.parse(URI.open('https://api.ipify.org?format=json').read)["ip"]
1919
```
2020

0 commit comments

Comments
 (0)