You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Sinatra DSL doesn't recognize the TRACE or TRACK verbs. Both are useful in debugging, and may have other uses as well, especially in development. Would a PR for adding the verbs and an implementation for them be accepted into Sinatra?
The text was updated successfully, but these errors were encountered:
This has been a major issue for me using sinatra. Aside from being unable to modify it easily (e. g. set different public directories as-is), debugging it is super-hard. It's such a shame because the underlying idea is great, but I feel as if we are hitting the end of the road with sinatra, without anything replacing it as-is. :(
(Rails is way too bloated and opinionated to act as a replacement. And padrino follows the rails philosophy. I'd love a sinatra 2.0 variant or actually 3.0 now with 2.1.0 already there ....)
Better debug support would be super-important. It's a black box to me ...
@dentarg Looks like :track is just a special IIS implementation of :trace that echoes the whole request back to the sender. So, AFAICT it's the same thing, but we might want to support them at least as synonyms—maybe just check for IIS in the request header and use :track instead of :trace—for those who write Sinatra code for Ruby on Windows systems. Even if we choose to ignore Windows, IMHO there's a ton of debugging benefit in implementing :trace natively, rather than forcing people to roll their own or using debugging proxies.
I'd be glad to help with a patch for :trace if someone wants to write a failing test. I don't know enough about Sinatra internals to offer one without at least that much minimal guidance, but will happily take a stab at it.
Currently, the Sinatra DSL doesn't recognize the TRACE or TRACK verbs. Both are useful in debugging, and may have other uses as well, especially in development. Would a PR for adding the verbs and an implementation for them be accepted into Sinatra?
The text was updated successfully, but these errors were encountered: