aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-23 06:41:02 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-23 06:41:02 +0000
commit40cc536307fd17d8f11a933b20dfd28f4ab6317d (patch)
treeb3d2f6c3e779093712f227f6fb7b32e90d18ff77
parent0b5ad1bcfb626852c653904b1cf8dea337885325 (diff)
downloadtor-40cc536307fd17d8f11a933b20dfd28f4ab6317d.tar.gz
tor-40cc536307fd17d8f11a933b20dfd28f4ab6317d.zip
rewrite conn->address for GET commands as well as POST commands.
svn:r6815
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index e8ff16f28d..c6af9b86a1 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1673,7 +1673,6 @@ directory_handle_command_post(connection_t *conn, char *headers,
return 0;
}
log_debug(LD_DIRSERV,"rewritten url as '%s'.", url);
- http_set_address_origin(headers, conn);
if (!strcmp(url,"/tor/")) { /* server descriptor post */
const char *msg;
@@ -1754,6 +1753,7 @@ directory_handle_command(connection_t *conn)
/* case 1, fall through */
}
+ http_set_address_origin(headers, conn);
//log_debug(LD_DIRSERV,"headers %s, body %s.", headers, body);
if (!strncasecmp(headers,"GET",3))