mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
rewrite conn->address for GET commands as well as POST commands.
svn:r6815
This commit is contained in:
parent
0b5ad1bcfb
commit
40cc536307
@ -1673,7 +1673,6 @@ directory_handle_command_post(connection_t *conn, char *headers,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
log_debug(LD_DIRSERV,"rewritten url as '%s'.", url);
|
log_debug(LD_DIRSERV,"rewritten url as '%s'.", url);
|
||||||
http_set_address_origin(headers, conn);
|
|
||||||
|
|
||||||
if (!strcmp(url,"/tor/")) { /* server descriptor post */
|
if (!strcmp(url,"/tor/")) { /* server descriptor post */
|
||||||
const char *msg;
|
const char *msg;
|
||||||
@ -1754,6 +1753,7 @@ directory_handle_command(connection_t *conn)
|
|||||||
/* case 1, fall through */
|
/* case 1, fall through */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
http_set_address_origin(headers, conn);
|
||||||
//log_debug(LD_DIRSERV,"headers %s, body %s.", headers, body);
|
//log_debug(LD_DIRSERV,"headers %s, body %s.", headers, body);
|
||||||
|
|
||||||
if (!strncasecmp(headers,"GET",3))
|
if (!strncasecmp(headers,"GET",3))
|
||||||
|
Loading…
Reference in New Issue
Block a user