Displaying 1 result from an estimated 1 matches for "acc_typ".
Did you mean:
acc_type
2007 Sep 04
11
returning(...) ?
...ix them up by sorting alternate xml forms (namely application/xhtml+xml)
- # ahead of pure xml types (application/xml,text/xml).
- if app_xml = list.detect{|e| e.super_range == ''application/xml''}
- list.select{|e| e.to_s =~ /\+xml/}.each { |acc_type|
- list[list.index(acc_type)],list[list.index(app_xml)] =
- list[list.index(app_xml)],list[list.index(acc_type)] }
- end
+ end.sort.uniq
+ # firefox (and possibly other browsers) send broken default accept headers.
+...