We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a7f15 commit 3f2e2aaCopy full SHA for 3f2e2aa
lib/webmachine/dispatcher/route.rb
@@ -43,21 +43,6 @@ def self.rfc3986_percent_decode(value)
43
result
44
end
45
46
- # Decode a string using the scheme described in RFC 3986 2.1. Percent-Encoding (https://www.ietf.org/rfc/rfc3986.txt)
47
- def self.rfc3986_percent_decode(value)
48
- s = StringScanner.new(value)
49
- result = ""
50
- until s.eos?
51
- encoded_val = s.scan(/%([0-9a-fA-F]){2}/)
52
- result << if encoded_val.nil?
53
- s.getch
54
- else
55
- [encoded_val[1..-1]].pack("H*")
56
- end
57
58
- result
59
60
-
61
# Creates a new Route that will associate a pattern to a
62
# {Resource}.
63
#
0 commit comments