Browse Source

Make sure that the http_proxy environment variable starts with http://

If not, then ignore it's value.

Originally committed as revision 628 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Philip Gladstone 24 years ago
parent
commit
3a2d04473d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libav/http.c

+ 1
- 1
libav/http.c View File

@@ -65,7 +65,7 @@ static int http_open(URLContext *h, const char *uri, int flags)
h->priv_data = s;

proxy_path = getenv("http_proxy");
use_proxy = (proxy_path != NULL) && !getenv("no_proxy");
use_proxy = (proxy_path != NULL) && !getenv("no_proxy") && (strncmp(proxy_path, "http://", 7) == 0);

/* fill the dest addr */
redo:


Loading…
Cancel
Save