Displaying 2 results from an estimated 2 matches for "accept_header".
2007 Aug 30
1
problems with ''no Accept header'' request
...load the files and I realized that Merb was giving me
an error for each upload. It turns out that Flash doesn''t seem to send an
Accept header and Merb''s responder crashes because it''s trying to split the
missing Accept header.
responder.rb line 37
def initialize(accept_header, params={})
MERB_LOGGER.info accept_header
@accepts = Responder.parse(accept_header)
@params = params
@stack = {}
end
@accepts seems to be later on used in negotiate_content() l84,
negotiate_by_format() l92, negotiate_by_accept_header l103
What'...
2007 Sep 04
11
returning(...) ?
...def load_required(timing = :after)
Index: lib/merb/mixins/responder.rb
===================================================================
--- lib/merb/mixins/responder.rb (revision 508)
+++ lib/merb/mixins/responder.rb (working copy)
@@ -65,18 +65,18 @@
def self.parse(accept_header)
# parse the raw accept header into a unique, sorted array of AcceptType objects
- returning( accept_header.split(/,/).enum_for(:each_with_index).map do |entry,index|
+ list = accept_header.split(/,/).enum_for(:each_with_index).map do |entry,index|...