librelist archives

« back to archive

Redirect / custom route

Redirect / custom route

From:
Eric Artzt
Date:
2012-09-10 @ 21:18
Hi,

I'm trying to implement a custom POST route in a theme -- a route to 
process a contact page submittal. Simplified method def below:

module Nesta
  class App

    helpers do
      # Add new helpers here.

    end

    post '/contact' do
      # emailer stuff runs fine

      redirect '/contact'
    end

  end
end

The route method runs, but then it consistently crashes with 
"Rack::Lint::LintError: a header value must be a String, but the value of 
'Cache-Control' is a Array" -- any hints? Indeed, this header value is an 
empty array.

App.rb snippet:

[2012-09-10 14:14:12] INFO  WEBrick 1.3.1
[2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
[2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304 - 0.0501
127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 2070 0.0254
Rack::Lint::LintError: a header value must be a String, but the value of 
'Cache-Control' is a Array
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
`assert'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
`block in check_headers'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`each'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`check_headers'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
`_call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
`call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
`call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
`call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
`call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
`call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
`call'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
`service'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
`service'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
`run'
	
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
`block in start_thread'
127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706 0.0171
127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 2070 0.0211

Re: [nesta] Redirect / custom route

From:
Brian Gonzalez
Date:
2012-09-10 @ 21:39
Can you throw your rackup file and app file into a gist?

On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com> wrote:

> Hi,
>
> I'm trying to implement a custom POST route in a theme -- a route to
> process a contact page submittal. Simplified method def below:
>
> module Nesta
>   class App
>
>     helpers do
>       # Add new helpers here.
>
>     end
>
>     post '/contact' do
>       # emailer stuff runs fine
>
>       redirect '/contact'
>     end
>
>   end
> end
>
> The route method runs, but then it consistently crashes with
> "Rack::Lint::LintError: a header value must be a String, but the value of
> 'Cache-Control' is a Array" -- any hints? Indeed, this header value is an
> empty array.
>
> App.rb snippet:
>
> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304 -
> 0.0501
> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 2070
> 0.0254
> Rack::Lint::LintError: a header value must be a String, but the value of
> 'Cache-Control' is a Array
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
> `assert'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
> `block in check_headers'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
> `each'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
> `check_headers'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
> `_call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
> `call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
> `call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
> `call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
> `call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
> `call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
> `call'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
> `service'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
> `service'
>
> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
> `run'
>
> /Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
> `block in start_thread'
> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706
> 0.0171
> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 2070
> 0.0211
>
>

Re: [nesta] Redirect / custom route

From:
Eric Artzt
Date:
2012-09-10 @ 21:51
https://gist.github.com/3694171

On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:

> Can you throw your rackup file and app file into a gist?
> 
> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
> Hi,
> 
> I'm trying to implement a custom POST route in a theme -- a route to 
process a contact page submittal. Simplified method def below:
> 
> module Nesta
>   class App
> 
>     helpers do
>       # Add new helpers here.
> 
>     end
> 
>     post '/contact' do
>       # emailer stuff runs fine
> 
>       redirect '/contact'
>     end
> 
>   end
> end
> 
> The route method runs, but then it consistently crashes with 
"Rack::Lint::LintError: a header value must be a String, but the value of 
'Cache-Control' is a Array" -- any hints? Indeed, this header value is an 
empty array.
> 
> App.rb snippet:
> 
> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304 - 0.0501
> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 2070 0.0254
> Rack::Lint::LintError: a header value must be a String, but the value of
'Cache-Control' is a Array
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
`assert'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
`block in check_headers'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`each'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`check_headers'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
`_call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
`call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
`call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
`call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
`call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
`call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
`call'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
`service'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
`service'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
`run'
>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
`block in start_thread'
> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706 0.0171
> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 2070 0.0211
> 
> 

Re: [nesta] Redirect / custom route

From:
Brian Gonzalez
Date:
2012-09-10 @ 22:13
Which version of Rack are you using? Run "gem list rack"

Also, try commenting out line 7 of config.ru. See if that helps.

On Mon, Sep 10, 2012 at 2:51 PM, Eric Artzt <artzte@baddabigboom.com> wrote:

> https://gist.github.com/3694171
>
> On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>
> Can you throw your rackup file and app file into a gist?
>
> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com>wrote:
>
>> Hi,
>>
>> I'm trying to implement a custom POST route in a theme -- a route to
>> process a contact page submittal. Simplified method def below:
>>
>> module Nesta
>>   class App
>>
>>     helpers do
>>       # Add new helpers here.
>>
>>     end
>>
>>     post '/contact' do
>>       # emailer stuff runs fine
>>
>>       redirect '/contact'
>>     end
>>
>>   end
>> end
>>
>> The route method runs, but then it consistently crashes with
>> "Rack::Lint::LintError: a header value must be a String, but the value of
>> 'Cache-Control' is a Array" -- any hints? Indeed, this header value is an
>> empty array.
>>
>> App.rb snippet:
>>
>> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
>> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
>> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304 -
>> 0.0501
>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 2070
>> 0.0254
>> Rack::Lint::LintError: a header value must be a String, but the value of
>> 'Cache-Control' is a Array
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
>> `assert'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
>> `block in check_headers'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
>> `each'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
>> `check_headers'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
>> `_call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
>> `call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
>> `call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
>> `call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
>> `call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
>> `call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
>> `call'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
>> `service'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
>> `service'
>>
>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
>> `run'
>>
>> /Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
>> `block in start_thread'
>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706
>> 0.0171
>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 2070
>> 0.0211
>>
>>
>
>

Re: [nesta] Redirect / custom route

From:
Eric Artzt
Date:
2012-09-10 @ 22:28
Thanks, Brian. 

Yes, removing the ETag require caused the error to stop.

Rack version: 1.4.1

The Cache-Control header is set to an empty array in rack-1.4.1/lib/rack/etag.rb 

-- Eric


On Sep 10, 2012, at 3:13 PM, Brian Gonzalez <me@briangonzalez.org> wrote:

> Which version of Rack are you using? Run "gem list rack"
> 
> Also, try commenting out line 7 of config.ru. See if that helps.
> 
> On Mon, Sep 10, 2012 at 2:51 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
> https://gist.github.com/3694171
> 
> On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
> 
>> Can you throw your rackup file and app file into a gist?
>> 
>> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
>> Hi,
>> 
>> I'm trying to implement a custom POST route in a theme -- a route to 
process a contact page submittal. Simplified method def below:
>> 
>> module Nesta
>>   class App
>> 
>>     helpers do
>>       # Add new helpers here.
>> 
>>     end
>> 
>>     post '/contact' do
>>       # emailer stuff runs fine
>> 
>>       redirect '/contact'
>>     end
>> 
>>   end
>> end
>> 
>> The route method runs, but then it consistently crashes with 
"Rack::Lint::LintError: a header value must be a String, but the value of 
'Cache-Control' is a Array" -- any hints? Indeed, this header value is an 
empty array.
>> 
>> App.rb snippet:
>> 
>> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
>> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
>> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304
- 0.0501
>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 
2070 0.0254
>> Rack::Lint::LintError: a header value must be a String, but the value 
of 'Cache-Control' is a Array
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
`assert'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
`block in check_headers'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`each'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`check_headers'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
`_call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
`call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
`call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
`call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
`call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
`call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
`call'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
`service'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
`service'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
`run'
>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
`block in start_thread'
>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706 0.0171
>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 
2070 0.0211
>> 
>> 
> 
> 

Re: [nesta] Redirect / custom route

From:
Brian Gonzalez
Date:
2012-09-10 @ 22:36
Great!

On Mon, Sep 10, 2012 at 3:28 PM, Eric Artzt <artzte@baddabigboom.com> wrote:

> Thanks, Brian.
>
> Yes, removing the ETag require caused the error to stop.
>
> Rack version: 1.4.1
>
> The Cache-Control header is set to an empty array in
> rack-1.4.1/lib/rack/etag.rb
>
> -- Eric
>
>
> On Sep 10, 2012, at 3:13 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>
> Which version of Rack are you using? Run "gem list rack"
>
> Also, try commenting out line 7 of config.ru. See if that helps.
>
> On Mon, Sep 10, 2012 at 2:51 PM, Eric Artzt 
<artzte@baddabigboom.com<+artzte@baddabigboom.com>
> > wrote:
>
>> https://gist.github.com/3694171
>>
>> On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>>
>> Can you throw your rackup file and app file into a gist?
>>
>> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com>wrote:
>>
>>> Hi,
>>>
>>> I'm trying to implement a custom POST route in a theme -- a route to
>>> process a contact page submittal. Simplified method def below:
>>>
>>> module Nesta
>>>   class App
>>>
>>>     helpers do
>>>       # Add new helpers here.
>>>
>>>     end
>>>
>>>     post '/contact' do
>>>       # emailer stuff runs fine
>>>
>>>       redirect '/contact'
>>>     end
>>>
>>>   end
>>> end
>>>
>>> The route method runs, but then it consistently crashes with
>>> "Rack::Lint::LintError: a header value must be a String, but the value of
>>> 'Cache-Control' is a Array" -- any hints? Indeed, this header value is an
>>> empty array.
>>>
>>> App.rb snippet:
>>>
>>> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
>>> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
>>> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304
>>> - 0.0501
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404
>>> 2070 0.0254
>>> Rack::Lint::LintError: a header value must be a String, but the value of
>>> 'Cache-Control' is a Array
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
>>> `assert'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
>>> `block in check_headers'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
>>> `each'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
>>> `check_headers'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
>>> `_call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
>>> `service'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
>>> `service'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
>>> `run'
>>>
>>> /Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
>>> `block in start_thread'
>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706
>>> 0.0171
>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404
>>> 2070 0.0211
>>>
>>>
>>
>>
>
>

Re: [nesta] Redirect / custom route

From:
Graham Ashton
Date:
2012-09-11 @ 18:08
I haven't had a chance to investigate this code yet. Will we be better off
by removing the etag from the default config.ru and allowing people to set
it up if we need it?

Another way of putting that is "will it always break post handlers?"

Cheers,
Graham

On 10 Sep 2012, at 23:28, Eric Artzt <artzte@baddabigboom.com> wrote:

> Thanks, Brian. 
> 
> Yes, removing the ETag require caused the error to stop.
> 
> Rack version: 1.4.1
> 
> The Cache-Control header is set to an empty array in 
rack-1.4.1/lib/rack/etag.rb 
> 
> -- Eric
> 
> 
> On Sep 10, 2012, at 3:13 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
> 
>> Which version of Rack are you using? Run "gem list rack"
>> 
>> Also, try commenting out line 7 of config.ru. See if that helps.
>> 
>> On Mon, Sep 10, 2012 at 2:51 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
>> https://gist.github.com/3694171
>> 
>> On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>> 
>>> Can you throw your rackup file and app file into a gist?
>>> 
>>> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
>>> Hi,
>>> 
>>> I'm trying to implement a custom POST route in a theme -- a route to 
process a contact page submittal. Simplified method def below:
>>> 
>>> module Nesta
>>>   class App
>>> 
>>>     helpers do
>>>       # Add new helpers here.
>>> 
>>>     end
>>> 
>>>     post '/contact' do
>>>       # emailer stuff runs fine
>>> 
>>>       redirect '/contact'
>>>     end
>>> 
>>>   end
>>> end
>>> 
>>> The route method runs, but then it consistently crashes with 
"Rack::Lint::LintError: a header value must be a String, but the value of 
'Cache-Control' is a Array" -- any hints? Indeed, this header value is an 
empty array.
>>> 
>>> App.rb snippet:
>>> 
>>> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
>>> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
>>> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 
304 - 0.0501
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 
2070 0.0254
>>> Rack::Lint::LintError: a header value must be a String, but the value 
of 'Cache-Control' is a Array
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
`assert'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
`block in check_headers'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`each'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`check_headers'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
`_call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
`call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
`call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
`call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
`call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
`call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
`call'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
`service'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
`service'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
`run'
>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
`block in start_thread'
>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706 0.0171
>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 
2070 0.0211
>>> 
>>> 
>> 
>> 
> 

Re: [nesta] Redirect / custom route

From:
Eric Artzt
Date:
2012-09-11 @ 18:25
Even if "Yes" to Graham's question, I don't think that POSTs are too 
common in this universe, so if the inclusion of the ETag from the default 
config.ru is generally beneficial, I would vote to just document the 
issue. Or, if there is some piece missing from my config that Rack's etag 
module is expecting, maybe we could determine what that is and add it to 
the config / document it.

Thanks for your attention,

Eric



On Sep 11, 2012, at 11:08 AM, Graham Ashton <graham@effectif.com> wrote:

> I haven't had a chance to investigate this code yet. Will we be better 
off by removing the etag from the default config.ru and allowing people to
set it up if we need it?
> 
> Another way of putting that is "will it always break post handlers?"
> 
> Cheers,
> Graham
> 
> On 10 Sep 2012, at 23:28, Eric Artzt <artzte@baddabigboom.com> wrote:
> 
>> Thanks, Brian. 
>> 
>> Yes, removing the ETag require caused the error to stop.
>> 
>> Rack version: 1.4.1
>> 
>> The Cache-Control header is set to an empty array in 
rack-1.4.1/lib/rack/etag.rb 
>> 
>> -- Eric
>> 
>> 
>> On Sep 10, 201 2, at 3:13 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>> 
>>> Which version of Rack are you using? Run "gem list rack"
>>> 
>>> Also, try commenting out line 7 of config.ru. See if that helps.
>>> 
>>> On Mon, Sep 10, 2012 at 2:51 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
>>> https://gist.github.com/3694171
>>> 
>>> On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>>> 
>>>> Can you throw your rackup file and app file into a gist?
>>>> 
>>>> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com> wrote:
>>>> Hi,
>>>> 
>>>> I'm trying to implement a custom POST route in a theme -- a route to 
process a contact page submittal. Simplified method def below:
>>>> 
>>>> module Nesta
>>>>   class App
>>>> 
>>>>     helpers do
>>>>       # Add new helpers here.
>>>> 
>>>>     end
>>>> 
>>>>     post '/contact' do
>>>>       # emailer stuff runs fine
>>>> 
>>>>       redirect '/contact'
>>>>     end
>>>> 
>>>>   end
>>>> end
>>>> 
>>>> The route method runs, but then it consistently crashes with 
"Rack::Lint::LintError: a header value must be a String, but the value of 
'Cache-Control' is a Array" -- any hints? Indeed, this header value is an 
empty array.
>>>> 
>>>> App.rb snippet:
>>>> 
>>>> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
>>>> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
>>>> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
>>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
>>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 
304 - 0.0501
>>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404 
2070 0.0254
>>>> Rack::Lint::LintError: a header value must be a String, but the value
of 'Cache-Control' is a Array
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
`assert'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
`block in check_headers'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`each'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
`check_headers'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
`_call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
`call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
`call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
`call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
`call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
`call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
`call'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
`service'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
`service'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
`run'
>>>>         
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
`block in start_thread'
>>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 
61706 0.0171
>>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404 
2070 0.0211
>>>> 
>>>> 
>>> 
>>> 
>> 

Re: [nesta] Redirect / custom route

From:
Brian Gonzalez
Date:
2012-09-11 @ 18:34
Looks like this is fixed in head: https://github.com/rack/rack/pull/295?
How often does Rack release a new gem?

On Tue, Sep 11, 2012 at 11:25 AM, Eric Artzt <artzte@baddabigboom.com>wrote:

> Even if "Yes" to Graham's question, I don't think that POSTs are too
> common in this universe, so if the inclusion of the ETag from the default
> config.ru is generally beneficial, I would vote to just document the
> issue. Or, if there is some piece missing from my config that Rack's etag
> module is expecting, maybe we could determine what that is and add it to
> the config / document it.
>
> Thanks for your attention,
>
> Eric
>
>
>
> On Sep 11, 2012, at 11:08 AM, Graham Ashton <graham@effectif.com> wrote:
>
> I haven't had a chance to investi gate this code yet. Will we be better
> off by removing the etag from the default config.ru and allowing people
> to set it up if we need it?
>
> Another way of putting that is "will it always break post handlers?"
>
> Cheers,
> Graham
>
> On 10 Sep 2012, at 23:28, Eric Artzt <artzte@baddabigboom.com> wrote:
>
> Thanks, Brian.
>
> Yes, removing the ETag require caused the error to stop.
>
> Rack version: 1.4.1
>
> The Cache-Control header is set to an empty array in
> rack-1.4.1/lib/rack/etag.rb
>
> -- Eric
>
>
> On Sep 10, 201 2, at 3:13 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>
> Which version of Rack are you using? Run "gem list rack"
>
> Also, try commenting out line 7 of config.ru. See if that helps.
>
> On Mon, Sep 10, 2012 at 2:51 PM, Eric Artzt 
<artzte@baddabigboom.com<+artzte@baddabigboom.com>
> > wrote:
>
>> https://gist.github.com/3694171
>>
>> On Sep 10, 2012, at 2:39 PM, Brian Gonzalez <me@briangonzalez.org> wrote:
>>
>> Can you throw your rackup file and app file into a gist?
>>
>> On Mon, Sep 10, 2012 at 2:18 PM, Eric Artzt <artzte@baddabigboom.com>wrote:
>>
>>> Hi,
>>>
>>> I'm trying to implement a custom POST route in a theme -- a route to
>>> process a contact page submittal. Simplified method def below:
>>>
>>> module Nesta
>>>   class App
>>>
>>>     helpers do
>>>       # Add new helpers here.
>>>
>>>     end
>>>
>>>     post '/contact' do
>>>       # emailer stuff runs fine
>>>
>>>       redirect '/contact'
>>>     end
>>>
>>>   end
>>> end
>>>
>>> The route method runs, but then it consistently crashes with
>>> "Rack::Lint::LintError: a header value must be a String, but the value of
>>> 'Cache-Control' is a Array" -- any hints? Indeed, this header value is an
>>> empty array.
>>>
>>> App.rb snippet:
>>>
>>> [2012-09-10 14:14:12] INFO  WEBrick 1.3.1
>>> [2012-09-10 14:14:12] INFO  ruby 1.9.2 (2012-04-20) [x86_64-darwin11.4.2]
>>> [2012-09-10 14:14:12] INFO  WEBrick::HTTPServer#start: pid=754 port=9292
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /contact HTTP/1.1" 304 - 0.0985
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /css/master.css HTTP/1.1" 304
>>> - 0.0501
>>> 127.0.0.1 - - [10/Sep/2012 14:14:20] "GET /favicon.ico HTTP/1.1" 404
>>> 2070 0.0254
>>> Rack::Lint::LintError: a header value must be a String, but the value of
>>> 'Cache-Control' is a Array
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:19:in
>>> `assert'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:451:in
>>> `block in check_headers'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
>>> `each'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:434:in
>>> `check_headers'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:52:in
>>> `_call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/lint.rb:36:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
>>> `call'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
>>> `service'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
>>> `service'
>>>
>>> 
/Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
>>> `run'
>>>
>>> /Users/eric/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/webrick/server.rb:183:in
>>> `block in start_thread'
>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "POST /contact HTTP/1.1" 500 61706
>>> 0.0171
>>> 127.0.0.1 - - [10/Sep/2012 14:14:22] "GET /favicon.ico HTTP/1.1" 404
>>> 2070 0.0211
>>>
>>>
>>
>>
>
>
>

Re: [nesta] Redirect / custom route

From:
Graham Ashton
Date:
2012-09-13 @ 09:18
On 11 Sep 2012, at 19:34, Brian Gonzalez <me@briangonzalez.org> wrote:

> Looks like this is fixed in head: https://github.com/rack/rack/pull/295?
How often does Rack release a new gem?

Good stuff. Shame it's not out yet, but from our point of view I think we 
can comfortably leave the etag code in.

Cheers.