do not update an url if Location is local

This commit is contained in:
Boris Faure 2015-06-03 23:04:03 +02:00
parent 566033f78d
commit 5d6544ed76
1 changed files with 11 additions and 8 deletions

View File

@ -2933,6 +2933,8 @@ _media_http_head_complete(void *data, int kind EINA_UNUSED, void *event_info)
unsigned int len; unsigned int len;
str += strlen(_LOCATION_HDR); str += strlen(_LOCATION_HDR);
if (*str != '/')
{
eina_stringshare_del(ty_head->src); eina_stringshare_del(ty_head->src);
/* skip the crlf */ /* skip the crlf */
@ -2944,6 +2946,7 @@ _media_http_head_complete(void *data, int kind EINA_UNUSED, void *event_info)
if (!ty_head->src) if (!ty_head->src)
goto error; goto error;
} }
}
else if (!strncmp(str, _CONTENT_TYPE_HDR, strlen(_CONTENT_TYPE_HDR))) else if (!strncmp(str, _CONTENT_TYPE_HDR, strlen(_CONTENT_TYPE_HDR)))
{ {
str += strlen(_CONTENT_TYPE_HDR); str += strlen(_CONTENT_TYPE_HDR);