:infinity -> 'infinity'

This commit is contained in:
Karel Pičman 2023-05-25 14:54:36 +02:00
parent 7429f418f5
commit 7f470ffe20

View File

@ -66,7 +66,7 @@ module Dav4rack
@depth ||= if (d = get_header('HTTP_DEPTH')) && %w[0 1].include?(d)
d.to_i
elsif infinity_depth_allowed?
:infinity
'infinity'
else
1
end
@ -165,7 +165,7 @@ module Dav4rack
Nokogiri.XML(body.read, &:strict) if body
rescue StandardError => e
Rails.logger.error e.message
raise ::Dav4rack::HttpStatus::BadRequest
raise Dav4rack::HttpStatus::BadRequest
end
end
end