OmniAuth Google OpenID WEBrick :: HTTPStatus :: RequestURITooLarge [英] OmniAuth Google OpenID WEBrick::HTTPStatus::RequestURITooLarge

查看:89
本文介绍了OmniAuth Google OpenID WEBrick :: HTTPStatus :: RequestURITooLarge的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OmniAuth允许用户使用其Google OpenID帐户登录.当我尝试使用WEBrick以开发模式登录时,出现WEBrick :: HTTPStatus :: RequestURITooLarge错误.当我将其部署到我的rails主机时,它可以正常工作. 我应该使用其他Web服务器代替WEBrick吗?

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::RequestURITooLarge error. When I deploy it to my rails host, it works fine. Is there a different web server I should use instead of WEBrick?

推荐答案

奇怪,我想知道WEBrick的URI长度限制是多少.您可以尝试thin http://code.macournoyer.com/thin/.有时,我在本地将其用于开发,而且效果很好.

Strange, I wonder what the URI length limit is for WEBrick. You could try thin http://code.macournoyer.com/thin/. I use this locally for development sometimes and it seems to work great.

这篇关于OmniAuth Google OpenID WEBrick :: HTTPStatus :: RequestURITooLarge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆