- Use
flag?
instead.
-ifdef linux
+{% if flag?(:linux) %}
- The
body
type is changed fromString?
toIO?
no overload matches 'Array(String)#<<' with type (HTTP::ChunkedContent | HTTP::Server::Response | HTTP::Server::Response::Output | HTTP::UnknownLengthContent | HTTP::WebSocket::Protocol::StreamIO | IO::ARGF | IO::Delimited | IO::FileDescriptor | IO::Hexdump | IO::Memory | IO::MultiWriter | IO::Sized | JSON::PrettyWriter | OpenSSL::SSL::Socket | String::Builder | Zlib::Deflate | Zlib::Inflate)
- ary << req.body.not_nil! if req.body
+ ary << req.body.not_nil!.gets_to_end if req.body
@maiha This is not correct:
You should use
req.body.not_nil!.gets_to_end
It might work by accident if the body is an
IO::Memory
, because itsto_s
returns the string contents, but in the general case you should usegets_to_end