projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a9c4e65
)
get_destination_from_headers(): Remove dead code
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Dec 2015 12:48:59 +0000
(12:48 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Dec 2015 12:48:59 +0000
(12:48 +0000)
parsers.c
patch
|
blob
|
history
diff --git
a/parsers.c
b/parsers.c
index
630537a
..
eed559a
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.29
8 2015/01/24 16:41:51
fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.29
9 2015/03/27 12:39:44
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@
-4402,6
+4402,8
@@
jb_err get_destination_from_headers(const struct list *headers, struct http_requ
char *p;
char *host;
char *p;
char *host;
+ assert(!http->ssl);
+
host = get_header_value(headers, "Host:");
if (NULL == host)
host = get_header_value(headers, "Host:");
if (NULL == host)
@@
-4427,12
+4429,12
@@
jb_err get_destination_from_headers(const struct list *headers, struct http_requ
}
else
{
}
else
{
- http->port =
http->ssl ? 443 :
80;
+ http->port = 80;
}
/* Rebuild request URL */
freez(http->url);
}
/* Rebuild request URL */
freez(http->url);
- http->url = strdup(
http->ssl ? "https://" :
"http://");
+ http->url = strdup("http://");
string_append(&http->url, http->hostport);
string_append(&http->url, http->path);
if (http->url == NULL)
string_append(&http->url, http->hostport);
string_append(&http->url, http->path);
if (http->url == NULL)