@abh3 commented on this pull request.


In src/XrdHttp/XrdHttpReq.cc:

> @@ -661,6 +661,13 @@ bool XrdHttpReq::Redir(XrdXrootd::Bridge::Context &info, //!< the result context
   else
     redirdest = "Location: http://";
   
+  // port -1 signals redirect to local filesystem
+  // switch to file:// protocol
+  if (port == -1)

Hi Paul,

The new definition is that if the port number is < 0 then the redirect target is a full URL. In your case, you need to check if the URL starts with "file://" and effect the redirection to the local file. Otherwise, the redirection should proceed as a normal full URL redirect for some other protocol. So, do not assume that just because you got a full URL it is for local file redirection.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1242#discussion_r453122600", "url": "https://github.com/xrootd/xrootd/pull/1242#discussion_r453122600", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1