Skip to content

Commit b3c06f1

Browse files
committed
Use escape instead of escape_path
1 parent b704fda commit b3c06f1

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## 1.0.6 - 2019-11-14
5+
### Changed
6+
- Use Rack::Utils.escape to make compat with Rack 1.6.0
7+
48
## 1.0.5 - 2019-11-14
59
### Changed
610
- Update Gem spec to require rack >= 1.6.0

lib/rack/cors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def select_logger(env)
152152

153153
def evaluate_path(env)
154154
path = env[PATH_INFO]
155-
path = Rack::Utils.clean_path_info(Rack::Utils.unescape_path(path)) if path
155+
path = Rack::Utils.clean_path_info(Rack::Utils.unescape(path)) if path
156156
path
157157
end
158158

lib/rack/cors/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Rack
22
class Cors
3-
VERSION = "1.0.5"
3+
VERSION = "1.0.6"
44
end
55
end

0 commit comments

Comments
 (0)