lib/nitro/adapter/webrick.rb in nitro-0.26.0 vs lib/nitro/adapter/webrick.rb in nitro-0.27.0

- old
+ new

@@ -78,11 +78,17 @@ res['content-type'] = 'text/html' res.body = '<html><body>Permission denied</body></html>' end end -# A Webrick Adapter for Nitro. +# A Webrick Adapter for Nitro. Webrick is a pure Ruby web server +# included in the default Ruby distribution. The Webrick Adapter +# is the prefered adapter in development/debug environments. It +# is also extremely easy to setup. +# +# However, for live/production environments, you should prefer +# a more performant adapter like FCGI or SCGI. class WebrickAdapter < WEBrick::HTTPServlet::AbstractServlet include WEBrick def initialize(webrick, server) @@ -150,10 +156,11 @@ res.body = context.out res.chunked = true if context.out.is_a?(IO) and context["SERVER_PROTOCOL"] == "HTTP/1.1" context.close ensure + $autoreload_dirty = false Og.manager.put_store if defined?(Og) and Og.respond_to?(:manager) end end end end @@ -184,6 +191,6 @@ end # * George Moschovitis <gm@navel.gr> # * Guillaume Pierronnet <guillaume.pierronnet@laposte.net> -# * Bryan Soto <bryan.a.soto@gmail.com> \ No newline at end of file +# * Bryan Soto <bryan.a.soto@gmail.com>