From 37f7f763e809143512254d6072f67ef82adc9b2a Mon Sep 17 00:00:00 2001
From: Vineet Goel <vineetgoel@gmail.com>
Date: Mon, 1 May 2017 07:22:08 +0000
Subject: [PATCH] fixes the issue https://trac.ffmpeg.org/ticket/6338

---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index d06103a..24a7da8 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1193,7 +1193,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
                            "Content-Type: %s\r\n", s->content_type);
     if (!has_header(s->headers, "\r\nCookie: ") && s->cookies) {
         char *cookies = NULL;
-        if (!get_cookies(s, &cookies, path, hoststr) && cookies) {
+        if (!get_cookies(s, &cookies, local_path, hoststr) && cookies) {
             len += av_strlcatf(headers + len, sizeof(headers) - len,
                                "Cookie: %s\r\n", cookies);
             av_free(cookies);
-- 
2.1.4

