lib/rmobio/utils.rb in rmobio-1.1.10 vs lib/rmobio/utils.rb in rmobio-1.1.11

- old
+ new

@@ -194,33 +194,10 @@ url = '' end logger.debug('back url ' + key + ': ' + url) "<burl>" + url + "</burl>" end # end backurl_xml - - # set_request_context - # This filter checks for the existence of a "mobio-context" header. - # If the header exists, then it is prepended to the request's uri. The flow - # is the following: - # - # - # A request is made to the server which contains a mobio-context header with - # a value of "mycustomcontext" to "/news" - # - # After applying the filter, the request uri would become - # - # "/mycustomcontext/news" - # - # If no header exists, the filter acts as a pass-through. - # - def set_request_context - if request.env['HTTP_MOBIO-CONTEXT'] and not request.env['HTTP_MOBIO-CONTEXT'] == '' - request.request_uri = '/' + request.env['HTTP_MOBIO-CONTEXT'] + request.request_uri - RAILS_DEFAULT_LOGGER.debug 'Utils: Setting the uri to: "' + - request.request_uri + '" for the current request.' unless not defined? RAILS_DEFAULT_LOGGER - end - end - + def logHeaders logger.debug( "Logging Headers...") request.env.keys.each do |header| logger.debug( header.to_s + ': ' + request.env[header].to_s) end \ No newline at end of file