mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Upgrade to Crystal 0.35.0 (#570)
* Update to ameba ~> 0.12.0 * Use Compress::Deflate and Compress::Gzip * Drop unused require * Fix spec due to defer request upgrade
This commit is contained in:
parent
70684a2cf0
commit
a8c0f09b85
4 changed files with 26 additions and 13 deletions
|
@ -48,6 +48,9 @@ def create_ws_request_and_return_io_and_context(handler, request)
|
|||
rescue IO::Error
|
||||
# Raises because the IO::Memory is empty
|
||||
end
|
||||
{% if compare_versions(Crystal::VERSION, "0.35.0-0") >= 0 %}
|
||||
response.upgrade_handler.try &.call(io)
|
||||
{% end %}
|
||||
io.rewind
|
||||
{io, context}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue