Projects
openEuler:24.03:SP1:Everything:64G
rubygem-sinatra
_service:tar_scm:rubygem-sinatra-2.0.8.1-Fix-fa...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:rubygem-sinatra-2.0.8.1-Fix-failing-tests.patch of Package rubygem-sinatra
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. --- test/static_test.rb | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/test/static_test.rb b/test/static_test.rb index e8408b14e..1c6cb35e9 100644 --- a/test/static_test.rb +++ b/test/static_test.rb @@ -152,8 +152,7 @@ def assert_valid_range(http_range, range, path, file) end it 'correctly ignores syntactically invalid range requests' do - # ...and also ignores multi-range requests, which aren't supported yet - ["bytes=45-40", "bytes=IV-LXVI", "octets=10-20", "bytes=-", "bytes=1-2,3-4"].each do |http_range| + ["bytes=45-40", "bytes=IV-LXVI", "octets=10-20", "bytes=", "bytes=3-1,4-5"].each do |http_range| request = Rack::MockRequest.new(@app) response = request.get("/#{File.basename(__FILE__)}", 'HTTP_RANGE' => http_range)
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