mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-24 21:50:19 +00:00
Add specs for the new StaticAssetsHandler
This commit is contained in:
committed by
Émilien (perso)
parent
6fd1cb3585
commit
9e482b4807
@@ -107,5 +107,12 @@ module Invidious::HttpServer
|
||||
# Paste in the body of inherited serve_file_range
|
||||
{{@type.superclass.methods.select(&.name.==("serve_file_range"))[0].body}}
|
||||
end
|
||||
|
||||
# Clear cached files.
|
||||
#
|
||||
# This is only used in the specs to clear the cache before each handler test
|
||||
def self.clear_cache
|
||||
return @@cached_files.clear
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user