forked from enlightenment/terminology
do not update an url if Location is local
This commit is contained in:
parent
566033f78d
commit
5d6544ed76
|
@ -2933,16 +2933,19 @@ _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);
|
||||||
eina_stringshare_del(ty_head->src);
|
if (*str != '/')
|
||||||
|
{
|
||||||
|
eina_stringshare_del(ty_head->src);
|
||||||
|
|
||||||
/* skip the crlf */
|
/* skip the crlf */
|
||||||
len = strlen(str);
|
len = strlen(str);
|
||||||
if (len <= 2)
|
if (len <= 2)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
ty_head->src = eina_stringshare_add_length(str, len - 2);
|
ty_head->src = eina_stringshare_add_length(str, len - 2);
|
||||||
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)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue