The fix is to change the GET argument. Instead of GETting the fully qualified URL, we just need to get the .path. The conn object has already opened the connection to the server -- irregarless if it is to CDA or to MIRROR_SITE. The change to use purl.path works both with CDA and MIRROR_SITE.
I'm actually kinda surprised that the CDA server is returning right file even with the "wrong" path .. but our web servers are ... well, let's say ... creatively configured :tm:.
This fixes #773
The fix is to change the
GET
argument. Instead ofGET
ting the fully qualified URL, we just need to get the.path
. Theconn
object has already opened the connection to the server -- irregarless if it is to CDA or to MIRROR_SITE. The change to usepurl.path
works both with CDA and MIRROR_SITE.I'm actually kinda surprised that the CDA server is returning right file even with the "wrong" path .. but our web servers are ... well, let's say ... creatively configured :tm:.