Simplify streaming example.
This commit is contained in:
parent
6e00c57b22
commit
8fbd9c2105
|
@ -141,13 +141,7 @@ That way we can for instance easily implement a streaming example:
|
|||
end
|
||||
end
|
||||
|
||||
get '/' do
|
||||
begin
|
||||
Stream.new
|
||||
rescue StandardError
|
||||
[500, 'sorry, error']
|
||||
end
|
||||
end
|
||||
get('/') { Stream.new }
|
||||
|
||||
== Static Files
|
||||
|
||||
|
|
Loading…
Reference in New Issue