OsreeFetcher: Treat 403 as not found
Private Cloudfront instances return 403 for objects which don't exist rather then a 404. Change the fetcher to assume 403 is ok for download that are "optional" rather then erroring out at that step (e.g. trying to download a static delta if the remote repo doesn't have those) Closes: #531 Approved by: cgwalters
This commit is contained in:
parent
0613b4a479
commit
be9a3a7a19
|
|
@ -1057,6 +1057,7 @@ on_request_sent (GObject *object,
|
||||||
switch (msg->status_code)
|
switch (msg->status_code)
|
||||||
{
|
{
|
||||||
case 404:
|
case 404:
|
||||||
|
case 403:
|
||||||
case 410:
|
case 410:
|
||||||
code = G_IO_ERROR_NOT_FOUND;
|
code = G_IO_ERROR_NOT_FOUND;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue