Check for hostname

You can enter the Djatoka URL as a relative path or full hostname. I did hostname and didn't get any errors. But this function assumes it is a path and sticks http(s)://<SERVER NAME> in front which causes you to get a blank Jpeg when downloading the clip.