|
From: <tom...@us...> - 2010-01-29 18:15:28
|
Revision: 2089
http://ndlb.svn.sourceforge.net/ndlb/?rev=2089&view=rev
Author: tombenner
Date: 2010-01-29 18:15:18 +0000 (Fri, 29 Jan 2010)
Log Message:
-----------
Added the intra-server handling code back into UtilsController#proxy
Modified Paths:
--------------
portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb
Modified: portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb
===================================================================
--- portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb 2010-01-29 18:10:23 UTC (rev 2088)
+++ portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb 2010-01-29 18:15:18 UTC (rev 2089)
@@ -16,13 +16,13 @@
# Check to see if the request is for a URL on thlib.org or a subdomain; if so, and if
# this is being run on sds[3-8], make the appropriate changes to headers and uri.host
- #if requested_host =~ /thlib.org/
- # server_host = Socket.gethostname.downcase
- # if server_host =~ /sds[3-8].itc.virginia.edu/
- # headers = { 'Host' => requested_host }
- # uri.host = '127.0.0.1'
- # end
- #end
+ if requested_host =~ /thlib.org/
+ server_host = Socket.gethostname.downcase
+ if server_host =~ /sds[3-8].itc.virginia.edu/
+ headers = { 'Host' => requested_host }
+ uri.host = '127.0.0.1'
+ end
+ end
# Required for requests without paths (e.g. http://www.google.com)
uri.path = "/" if uri.path.empty?
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|