Browse files

Moved NOT_ACCEPTABLE constant to Rack::Conneg

  • Loading branch information...
1 parent 9c14fc3 commit 1b27a7a1e9192177a665625fc32ee977896d6ca9 @dkubb committed Oct 18, 2009
Showing with 6 additions and 5 deletions.
  1. +6 −0 lib/rack/conneg.rb
  2. +0 −5 lib/rack/conneg/negotiator.rb
View
6 lib/rack/conneg.rb
@@ -3,6 +3,12 @@
module Rack
class Conneg
VERSION = '0.1.0'.freeze
+
+ NOT_ACCEPTABLE = [
+ 406,
+ { 'Content-Type' => 'text/plain', 'Content-Length' => '19' },
+ "406 Not Acceptable\n",
+ ].freeze
end
end
View
5 lib/rack/conneg/negotiator.rb
@@ -1,11 +1,6 @@
module Rack
class Conneg
class Negotiator
- NOT_ACCEPTABLE = [
- 406,
- { 'Content-Type' => 'text/plain', 'Content-Length' => '19' },
- "406 Not Acceptable\n",
- ].freeze
# Negotiate a response using the request headers
#

0 comments on commit 1b27a7a

Please sign in to comment.