Projects
Mega:24.03:SP1:Everything
rubygem-rack-protection
_service:tar_scm:rubygem-rack-protection-2.0.8....
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:rubygem-rack-protection-2.0.8.1-Fix-failing-tests.patch of Package rubygem-rack-protection
From 750aa3b0de06dad41539bdb402123b5416a3475d Mon Sep 17 00:00:00 2001 From: Jordan Owens <jkowens@gmail.com> Date: Tue, 10 Mar 2020 10:24:05 -0400 Subject: [PATCH] Fix failing tests Rack added support for Multi-part ranges and apparently changed the format of cookie expires timestamp format to match specs. --- .../spec/lib/rack/protection/cookie_tossing_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rack-protection/spec/lib/rack/protection/cookie_tossing_spec.rb b/rack-protection/spec/lib/rack/protection/cookie_tossing_spec.rb index af46ffc2b..f973bd476 100644 --- a/rack-protection/spec/lib/rack/protection/cookie_tossing_spec.rb +++ b/rack-protection/spec/lib/rack/protection/cookie_tossing_spec.rb @@ -28,12 +28,12 @@ get '/some/path', {}, 'HTTP_COOKIE' => 'rack.%73ession=EVIL_SESSION_TOKEN; rack.session=EVIL_SESSION_TOKEN; rack.session=SESSION_TOKEN' expected_header = <<-END.chomp -rack.%2573ession=; domain=example.org; path=/; expires=Thu, 01 Jan 1970 00:00:00 -0000 -rack.%2573ession=; domain=example.org; path=/some; expires=Thu, 01 Jan 1970 00:00:00 -0000 -rack.%2573ession=; domain=example.org; path=/some/path; expires=Thu, 01 Jan 1970 00:00:00 -0000 -rack.session=; domain=example.org; path=/; expires=Thu, 01 Jan 1970 00:00:00 -0000 -rack.session=; domain=example.org; path=/some; expires=Thu, 01 Jan 1970 00:00:00 -0000 -rack.session=; domain=example.org; path=/some/path; expires=Thu, 01 Jan 1970 00:00:00 -0000 +rack.%2573ession=; domain=example.org; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT +rack.%2573ession=; domain=example.org; path=/some; expires=Thu, 01 Jan 1970 00:00:00 GMT +rack.%2573ession=; domain=example.org; path=/some/path; expires=Thu, 01 Jan 1970 00:00:00 GMT +rack.session=; domain=example.org; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT +rack.session=; domain=example.org; path=/some; expires=Thu, 01 Jan 1970 00:00:00 GMT +rack.session=; domain=example.org; path=/some/path; expires=Thu, 01 Jan 1970 00:00:00 GMT END expect(last_response.headers['Set-Cookie']).to eq(expected_header) end
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2