lib/rmobio/client_info.rb in rmobio-1.1.5 vs lib/rmobio/client_info.rb in rmobio-1.1.6

- old
+ new

@@ -57,15 +57,17 @@ logger.debug('checkClient http_accept header:') logger.debug(request.env['HTTP_ACCEPT']) if request.env['HTTP_MOBIO_AGENT'] or request.env['HTTP_ACCEPT']=~/application\/pxml/ @client="xf" + elsif (request.env['HTTP_ACCEPT']=~/application\/xhtml/) + headers['Content-Type']="text/html" + @client = "xhtml" elsif ((request.env['HTTP_ACCEPT']=~/wml/) || (request.env['HTTP_ACCEPT']=~/wap/) ) @client="wap" - elsif (request.env['HTTP_ACCEPT']=~/application\/xhtml/) - @client = "xhtml" else + headers['Content-Type']="text/html" @client="html" end # Get the rxml transformer for the client type @xml = TransformerFactory::get_transformer(@client) \ No newline at end of file