mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-11-15 05:45:06 -05:00
Convert to integer before comparing. data.code is String
This commit is contained in:
parent
ef8392e267
commit
7ebc0a0d8b
@ -82,7 +82,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 data.code != 200
|
if Integer(data.code) != 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
|
||||||
|
Loading…
Reference in New Issue
Block a user