Commit 6300a033 authored by David Bird's avatar David Bird Committed by GitHub
Browse files

Merge pull request #296 from gbaligh/browsers_using_https_proxy_behind_chilli

Fixe browsers using a HTTPS proxy behind coova.
parents d2a119fa 36715ef8
......@@ -2125,13 +2125,15 @@ static int redir_getreq(struct redir_t *redir, struct redir_socket_t *sock,
while (*p1 == ' ') p1++; /* Advance through additional white space */
/* A proxy request, skip over the initial URL */
if (!strncmp(p1, "http://", 7) && strlen(p1) > 8) {
/*
* A proxy request, skip over the initial URL
*/
p1 += 7;
while (*p1 && *p1 != '/') p1++;
}
else if (!strncmp(p1, "https://", 8) && strlen(p1) > 9) {
p1 += 8;
while (*p1 && *p1 != '/') p1++;
}
if (*p1 == '/') p1++;
else { syslog(LOG_ERR, "parse error"); return -1; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment