|
@ -84,7 +84,7 @@ module Jekyll |
|
|
https.verify_mode = OpenSSL::SSL::VERIFY_NONE |
|
|
https.verify_mode = OpenSSL::SSL::VERIFY_NONE |
|
|
request = Net::HTTP::Get.new raw_uri.request_uri |
|
|
request = Net::HTTP::Get.new raw_uri.request_uri |
|
|
data = https.request request |
|
|
data = https.request request |
|
|
if Integer(data.code) != 200 |
|
|
if data.code.to_i != 200 |
|
|
raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}" |
|
|
raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}" |
|
|
end |
|
|
end |
|
|
data = data.body |
|
|
data = data.body |
|
|