mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Ignore errors trying to update the backport tables. Fixes #788
This commit is contained in:
parent
6fa830aa55
commit
791cd4af97
3 changed files with 49 additions and 39 deletions
|
@ -7,6 +7,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
module URI
|
module URI
|
||||||
|
begin
|
||||||
TBLENCWWWCOMP_ = {} # :nodoc:
|
TBLENCWWWCOMP_ = {} # :nodoc:
|
||||||
256.times do |i|
|
256.times do |i|
|
||||||
TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
|
TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
|
||||||
|
@ -23,6 +24,8 @@ module URI
|
||||||
end
|
end
|
||||||
TBLDECWWWCOMP_['+'] = ' '
|
TBLDECWWWCOMP_['+'] = ' '
|
||||||
TBLDECWWWCOMP_.freeze
|
TBLDECWWWCOMP_.freeze
|
||||||
|
rescue Exception
|
||||||
|
end
|
||||||
|
|
||||||
# Encode given +s+ to URL-encoded form data.
|
# Encode given +s+ to URL-encoded form data.
|
||||||
#
|
#
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
require 'uri/common'
|
require 'uri/common'
|
||||||
|
|
||||||
module URI
|
module URI
|
||||||
|
begin
|
||||||
TBLDECWWWCOMP_ = {} unless const_defined?(:TBLDECWWWCOMP_) #:nodoc:
|
TBLDECWWWCOMP_ = {} unless const_defined?(:TBLDECWWWCOMP_) #:nodoc:
|
||||||
if TBLDECWWWCOMP_.empty?
|
if TBLDECWWWCOMP_.empty?
|
||||||
256.times do |i|
|
256.times do |i|
|
||||||
|
@ -29,6 +30,8 @@ module URI
|
||||||
TBLDECWWWCOMP_['+'] = ' '
|
TBLDECWWWCOMP_['+'] = ' '
|
||||||
TBLDECWWWCOMP_.freeze
|
TBLDECWWWCOMP_.freeze
|
||||||
end
|
end
|
||||||
|
rescue Exception
|
||||||
|
end
|
||||||
|
|
||||||
def self.decode_www_form(str, enc=Encoding::UTF_8)
|
def self.decode_www_form(str, enc=Encoding::UTF_8)
|
||||||
return [] if str.empty?
|
return [] if str.empty?
|
||||||
|
|
|
@ -8,7 +8,9 @@ require 'uri/common'
|
||||||
# Relevant commit:
|
# Relevant commit:
|
||||||
# https://github.com/ruby/ruby/commit/edb7cdf1eabaff78dfa5ffedfbc2e91b29fa9ca1
|
# https://github.com/ruby/ruby/commit/edb7cdf1eabaff78dfa5ffedfbc2e91b29fa9ca1
|
||||||
|
|
||||||
|
|
||||||
module URI
|
module URI
|
||||||
|
begin
|
||||||
256.times do |i|
|
256.times do |i|
|
||||||
TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
|
TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
|
||||||
end
|
end
|
||||||
|
@ -24,6 +26,8 @@ module URI
|
||||||
end
|
end
|
||||||
TBLDECWWWCOMP_['+'] = ' '
|
TBLDECWWWCOMP_['+'] = ' '
|
||||||
TBLDECWWWCOMP_.freeze
|
TBLDECWWWCOMP_.freeze
|
||||||
|
rescue Exception
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# :startdoc:
|
# :startdoc:
|
||||||
|
|
Loading…
Reference in a new issue