fix http prefix request prob.
This commit is contained in:
parent
1cf178b02d
commit
0d86921a02
|
@ -111,7 +111,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
require 'uri'
|
require 'uri'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
uri_path = "/panel/feed/back_end/feed_requests/transferred_request"
|
uri_path = "/panel/feed/back_end/feed_requests/transferred_request"
|
||||||
# http = Net::HTTP.new(feed.link, 80)
|
# http = Net::HTTP.new(feed.link, 80)
|
||||||
http = Net::HTTP.new(feed.link, 80)
|
http = Net::HTTP.new(feed.link, 80)
|
||||||
|
@ -122,7 +122,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController
|
||||||
body = {
|
body = {
|
||||||
'link' => feed.link,
|
'link' => feed.link,
|
||||||
'name' => feed.name,
|
'name' => feed.name,
|
||||||
'from_host' => env["HTTP_ORIGIN"],
|
'from_host' => env["HTTP_ORIGIN"].sub("http://",""),
|
||||||
'categories' => categories
|
'categories' => categories
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue