summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-06-03 23:04:03 +0200
committerBoris Faure <billiob@gmail.com>2015-06-03 23:04:03 +0200
commit5d6544ed7689c9b7988d373502ff46f97220b080 (patch)
tree2d0118e16ceb3bf5402f50c1352b2b6de5eaa34f /src
parent566033f78d49cc77675116806a527178677dcf7c (diff)
do not update an url if Location is local
Diffstat (limited to 'src')
-rw-r--r--src/bin/win.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 941e954..6a99c6e 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2933,16 +2933,19 @@ _media_http_head_complete(void *data, int kind EINA_UNUSED, void *event_info)
2933 unsigned int len; 2933 unsigned int len;
2934 2934
2935 str += strlen(_LOCATION_HDR); 2935 str += strlen(_LOCATION_HDR);
2936 eina_stringshare_del(ty_head->src); 2936 if (*str != '/')
2937 {
2938 eina_stringshare_del(ty_head->src);
2937 2939
2938 /* skip the crlf */ 2940 /* skip the crlf */
2939 len = strlen(str); 2941 len = strlen(str);
2940 if (len <= 2) 2942 if (len <= 2)
2941 goto error; 2943 goto error;
2942 2944
2943 ty_head->src = eina_stringshare_add_length(str, len - 2); 2945 ty_head->src = eina_stringshare_add_length(str, len - 2);
2944 if (!ty_head->src) 2946 if (!ty_head->src)
2945 goto error; 2947 goto error;
2948 }
2946 } 2949 }
2947 else if (!strncmp(str, _CONTENT_TYPE_HDR, strlen(_CONTENT_TYPE_HDR))) 2950 else if (!strncmp(str, _CONTENT_TYPE_HDR, strlen(_CONTENT_TYPE_HDR)))
2948 { 2951 {