OmniAuth Google OpenID WEBrick::HTTPStatus::RequestURITooLarge

后端 未结 5 1720
礼貌的吻别
礼貌的吻别 2020-12-17 14:20

I am using OmniAuth to allow users to log in with their Google OpenID accounts. When I try to log in in development mode with WEBrick, I get a WEBrick::HTTPStatus::RequestUR

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-17 15:01

    Add a file called webrick.rb file to the config\initializers directory.

    if defined?(WEBrick::HTTPRequest)
      WEBrick::HTTPRequest.const_set("MAX_URI_LENGTH", 10240)
    end
    

提交回复
热议问题