Closed forthrin closed 1 year ago
Do you need to return a response or something?
No, I just did this to check the environment. (Not to be used in production). Am doing something you're not supposed to do in this context? See also original question: Why is this happening, and what is the proper fix?
What framework is
get '/' do
content_type 'text/plain'
request.env.each do |k, v|
puts "#{k}: #{v}"
end
end
Looks like Sinatra. The issue is the get
block is not returning one of Sinatra's expected return values. See the Return Values section of https://sinatrarb.com/intro.html . This appears to be a bug in the app, not in Webrick.
Yes, Sinatra. Aha, so it's not the code itself, but what is returns that causes problems down the line. I didn't know there was a return value. Not an issue then, or there could possibly be a warning/exception for this. Up to the devs.
Why is this happening, and what is the proper fix?
Notices: