1 Star 0 Fork 14

peng2285/rubygem-sinatra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-sinatra-2.0.8.1-Fix-failing-tests.patch 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
lyn 提交于 2022-02-24 11:33 . update to 2.0.8.1
From 750aa3b0de06dad41539bdb402123b5416a3475d Mon Sep 17 00:00:00 2001
From: Jordan Owens <[email protected]>
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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/peng2285/rubygem-sinatra.git
[email protected]:peng2285/rubygem-sinatra.git
peng2285
rubygem-sinatra
rubygem-sinatra
master

搜索帮助