We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae08faf commit 6460940Copy full SHA for 6460940
1 file changed
lib/webmachine/dispatcher/route.rb
@@ -37,7 +37,7 @@ def self.rfc3986_percent_decode(value)
37
result << if encoded_val.nil?
38
s.getch
39
else
40
- [encoded_val[1..-1]].pack('H*')
+ [encoded_val[1..]].pack('H*')
41
end
42
43
result
@@ -154,8 +154,8 @@ def bind(tokens, bindings)
154
155
return false
156
157
- spec = spec[1..-1]
158
- tokens = tokens[1..-1]
+ spec = spec[1..]
+ tokens = tokens[1..]
159
depth += 1
160
161
0 commit comments