From fe488363046b01ef2ef4090c223874fb1080b253 Mon Sep 17 00:00:00 2001 From: thomaschen <99703040@nccu.edu.tw> Date: Wed, 12 Feb 2014 17:25:01 +0800 Subject: [PATCH] fix current host name --- app/controllers/panel/feed/back_end/feeds_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/panel/feed/back_end/feeds_controller.rb b/app/controllers/panel/feed/back_end/feeds_controller.rb index bf48fed..1aca18b 100644 --- a/app/controllers/panel/feed/back_end/feeds_controller.rb +++ b/app/controllers/panel/feed/back_end/feeds_controller.rb @@ -122,7 +122,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController body = { 'link' => feed.link, 'name' => feed.name, - 'from_host' => request.host, + 'from_host' => env["REMOTE_HOST"], 'categories' => categories }