6ad1af3fffe90d3fc367fc39bb226d6137851b50
max
  Mon Mar 27 15:53:56 2017 -0700
adding udc fix so we can load signed URLs from Amazon S3, refs #18989

diff --git src/lib/udc.c src/lib/udc.c
index 095ac97..8fa03f3 100644
--- src/lib/udc.c
+++ src/lib/udc.c
@@ -472,31 +472,31 @@
 return total;
 }
 
 boolean udcInfoViaHttp(char *url, struct udcRemoteFileInfo *retInfo)
 /* Gets size and last modified time of URL
  * and returns status of HEAD GET. */
 {
 verbose(4, "checking http remote info on %s\n", url);
 int redirectCount = 0;
 struct hash *hash;
 int status;
 while (TRUE)
     {
     hash = newHash(0);
     status = netUrlHead(url, hash);
-    if (status == 200)
+    if (status == 200 || status == 403)
 	break;
     if (status != 301 && status != 302)  
 	return FALSE;
     ++redirectCount;
     if (redirectCount > 5)
 	{
 	warn("code %d redirects: exceeded limit of 5 redirects, %s", status, url);
 	return  FALSE;
 	}
     char *newUrl = hashFindValUpperCase(hash, "Location:");
     retInfo->ci.redirUrl = cloneString(newUrl);
     url = transferParamsToRedirectedUrl(url, newUrl);		
     hashFree(&hash);
     }