Displaying 1 result from an estimated 1 matches for "create_env_table".
2006 Feb 12
0
problem serving files which start with newlines
...Since this is in webrick_server.rb am I right to assume that it''s a
problem in the webrick webserver and that when using e.g. apache this
will go away?
def handle_dispatch(req, res, origin = nil) #:nodoc:
data = StringIO.new
Dispatcher.dispatch(
CGI.new("query", create_env_table(req, origin),
StringIO.new(req.body || "")),
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS,
data
)
print data.string <- linefeeds still there
header, body = extract_header_and_body(data)
print body <- linefeeds gone
[...]
end
[......