Git Product home page Git Product logo

Comments (5)

ioquatix avatar ioquatix commented on July 30, 2024

Do you need to return a response or something?

from webrick.

forthrin avatar forthrin commented on July 30, 2024

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?

from webrick.

ioquatix avatar ioquatix commented on July 30, 2024

What framework is

get '/' do
  content_type 'text/plain'
  request.env.each do |k, v|
    puts "#{k}: #{v}"
  end
end

from webrick.

jeremyevans avatar jeremyevans commented on July 30, 2024

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.

from webrick.

forthrin avatar forthrin commented on July 30, 2024

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.

from webrick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.