From 9b37663a3b2a1bc76288bfce9049216b2c774376 Mon Sep 17 00:00:00 2001 From: zhgchgli Date: Sat, 18 Mar 2023 11:56:53 +0800 Subject: [PATCH] [Fix] infinte 304 --- ZMediumToMarkdown.gemspec | 2 +- lib/Request.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ZMediumToMarkdown.gemspec b/ZMediumToMarkdown.gemspec index ac4cb7e..215bbe8 100644 --- a/ZMediumToMarkdown.gemspec +++ b/ZMediumToMarkdown.gemspec @@ -6,7 +6,7 @@ Gem::Specification.new do |gem| gem.files = Dir['lib/**/*.*'] gem.executables = ['ZMediumToMarkdown'] gem.name = 'ZMediumToMarkdown' - gem.version = '2.1.3' + gem.version = '2.1.5' gem.license = "MIT" diff --git a/lib/Request.rb b/lib/Request.rb index d600b2d..951e67e 100644 --- a/lib/Request.rb +++ b/lib/Request.rb @@ -33,7 +33,8 @@ def self.URL(url, method = 'GET', data = nil, retryCount = 0) if !location.match? /^(http)/ location = "#{uri.scheme}://#{uri.host}#{location}" end - response = self.URL(location, method, data) + + response = self.URL(location, method, data, retryCount) end end rescue