mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Match should eq nil not be
This commit is contained in:
parent
0724e07c22
commit
66612eeb04
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ describe Kemal::StaticFileHandler do
|
||||||
if response.status_code == 206
|
if response.status_code == 206
|
||||||
response.headers.has_key?("Content-Range").should eq true
|
response.headers.has_key?("Content-Range").should eq true
|
||||||
match = response.headers["Content-Range"].match(/bytes (\d+)-(\d+)\/(\d+)/)
|
match = response.headers["Content-Range"].match(/bytes (\d+)-(\d+)\/(\d+)/)
|
||||||
match.should_not be nil
|
match.should_not eq nil
|
||||||
if match
|
if match
|
||||||
start_range = match[1].to_i { 0 }
|
start_range = match[1].to_i { 0 }
|
||||||
end_range = match[2].to_i { 0 }
|
end_range = match[2].to_i { 0 }
|
||||||
|
|
Loading…
Reference in a new issue