Skip to content

Commit

Permalink
do not force_encoding on path_info
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed Jul 24, 2020
1 parent df82455 commit 6ff526d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/dav4rack/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Request < Rack::Request
def initialize(env, options = {})
super env
@options = { recursive_propfind_allowed: true }.merge options
sanitize_path_info
self.path_info = expand_path path_info
end


Expand Down Expand Up @@ -189,10 +189,6 @@ def infinity_depth_allowed?
request_method != 'PROPFIND' or @options[:recursive_propfind_allowed]
end

def sanitize_path_info
self.path_info.force_encoding 'UTF-8'
self.path_info = expand_path path_info
end

def parse_request_body
return Nokogiri.XML(body.read){ |config|
Expand Down

0 comments on commit 6ff526d

Please sign in to comment.