rubhub 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github/github.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 870e22bde369ab2791b75adda142189c644fdc7e
|
4
|
+
data.tar.gz: c83cfabd6e843ccaa92ea738fbb30d670fa743db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c55c011b02889dd12cc3bc946e2dcb779f3aec1e20bd029715c54af2835d2713f56dc474361edeb57dc3917750f4b9183240f3f925961ebb5c41396952052f
|
7
|
+
data.tar.gz: 74c858280213d97e7dd6565265a73bc17af1072b288c2140b2f4f477600742c1783aaf2f95acf7e9172dc0c4a02260d1c938a57533afeba503fd1deab1120ec6
|
data/lib/github/github.rb
CHANGED
@@ -29,7 +29,7 @@ class Github
|
|
29
29
|
|
30
30
|
def get(path)
|
31
31
|
uri = URI(buildurl(path))
|
32
|
-
req = Net::HTTP::Get.new(uri.request_uri)
|
32
|
+
req = Net::HTTP::Get.new(uri.request_uri, initheader = {'Accept' => 'application/json'})
|
33
33
|
req.basic_auth @username, @password
|
34
34
|
res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
|
35
35
|
http.request(req)
|