summaryrefslogtreecommitdiff
path: root/lib/zero/request.rb
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-11-16 13:59:12 +0100
committerGibheer <gibheer@gmail.com>2012-11-16 18:13:07 +0100
commitbe5cd61bb92f9f802bf30e98064d310168e690c2 (patch)
tree625224f586b2dfbd5540d8b827eff6207ffe48a9 /lib/zero/request.rb
parenta7d3106df2840b4173d762b8cc8c35d6bfbb7065 (diff)
this adds a new accept type
This new class handles various accept strings and makes them available throught the same API. This way, language and media type feels the same.
Diffstat (limited to 'lib/zero/request.rb')
-rw-r--r--lib/zero/request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zero/request.rb b/lib/zero/request.rb
index 6b6ff01..9be17e9 100644
--- a/lib/zero/request.rb
+++ b/lib/zero/request.rb
@@ -55,7 +55,7 @@ module Zero
# get the media types
# @return [Accept] on Accept object managing all types and their order
def media_types
- @accept ||= Request::Accept.new(@env[CONST_HTTP_ACCEPT])
+ @accept ||= Request::Accept.new(@env)
end
# get the method of the request