lib/spire/router.rb in spire-0.4.1 vs lib/spire/router.rb in spire-0.4.2
- old
+ new
@@ -43,9 +43,10 @@
end
def return_file(file)
result = Public.new :file => file, :render => true
file = result.extension_check
+
if file == 404
return Error.new :status => 404, :message => "404 // File not found"
else
return Response.new(file[:file], file[:content_type], 200)
end