Ticket #6338: http_cookies_with_proxy.patch

File http_cookies_with_proxy.patch, 594 bytes (added by Vineet Goel, 9 years ago)

fix to correctly send cookies when using proxy

  • http.c

    old new  
    10941094                           "Content-Type: %s\r\n", s->content_type);
    10951095    if (!has_header(s->headers, "\r\nCookie: ") && s->cookies) {
    10961096        char *cookies = NULL;
    1097         if (!get_cookies(s, &cookies, path, hoststr) && cookies) {
     1097        if (!get_cookies(s, &cookies, local_path, hoststr) && cookies) {
    10981098            len += av_strlcatf(headers + len, sizeof(headers) - len,
    10991099                               "Cookie: %s\r\n", cookies);
    11001100            av_free(cookies);