2010-06-02 81 views
0

我剛從rails 2.3.5升級到rails 2.3.8,但現在我的重定向工作不正常。升級後導軌出現錯誤標題2.3.5 - > 2.3.8

我得到以下爲響應HTTP標頭:

HTTP/1.1 302 Moved Temporarily 
Date: Wed, 02 Jun 2010 09:40:39 GMT 
Content-Length: 93 
Content-Type: text/html 

,而我以前:

HTTP/1.1 302 Moved Temporarily 
Connection: close 
Date: Wed, 02 Jun 2010 09:41:18 GMT 
Set-Cookie: _session_id=<correct id>; path=/ 
Status: 302 Found 
Location: <correct url> 
Cache-Control: no-cache 
Server: Mongrel 1.1.5 
Content-Type: text/html; charset=utf-8 
Content-Length: 93 

任何人知道如何解決這一問題?儘管重定向不起作用,登錄cookie也沒有設置(但我認爲,這兩者都有關聯)。

我已經嘗試覆蓋redirect_to以設置response.headers ['Location']等,但它們沒有出現在響應中。

編輯:好的,這似乎是一個與mongrel_rails一起導軌2.3.8,腳本/服務器沒有這個問題。

回答

1

我相信鐵軌2.3.8不再支持雜種。嘗試使用瘦應用程序服務器,您可能不會看到該錯誤。

0

我被降級到2.3.5

+0

這是一個非常糟糕的主意。 – 2010-06-18 14:27:02