|
From: <tom...@us...> - 2010-01-29 18:10:35
|
Revision: 2088
http://ndlb.svn.sourceforge.net/ndlb/?rev=2088&view=rev
Author: tombenner
Date: 2010-01-29 18:10:23 +0000 (Fri, 29 Jan 2010)
Log Message:
-----------
Temporarily testing UtilsController:proxy without intra-server handling for HTTP requests
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 17:45:59 UTC (rev 2087)
+++ portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb 2010-01-29 18:10:23 UTC (rev 2088)
@@ -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.
|