Support versions of rails that use CgiRequest