mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
remove an unneeded layer of indentation
no actual behavior changes
This commit is contained in:
parent
11d52a449c
commit
500c4bf807
@ -2875,23 +2875,21 @@ static int
|
|||||||
handle_get_frontpage(dir_connection_t *conn, const get_handler_args_t *args)
|
handle_get_frontpage(dir_connection_t *conn, const get_handler_args_t *args)
|
||||||
{
|
{
|
||||||
(void) args; /* unused */
|
(void) args; /* unused */
|
||||||
{
|
const char *frontpage = get_dirportfrontpage();
|
||||||
const char *frontpage = get_dirportfrontpage();
|
|
||||||
|
|
||||||
if (frontpage) {
|
if (frontpage) {
|
||||||
size_t dlen;
|
size_t dlen;
|
||||||
dlen = strlen(frontpage);
|
dlen = strlen(frontpage);
|
||||||
/* Let's return a disclaimer page (users shouldn't use V1 anymore,
|
/* Let's return a disclaimer page (users shouldn't use V1 anymore,
|
||||||
and caches don't fetch '/', so this is safe). */
|
and caches don't fetch '/', so this is safe). */
|
||||||
|
|
||||||
/* [We don't check for write_bucket_low here, since we want to serve
|
/* [We don't check for write_bucket_low here, since we want to serve
|
||||||
* this page no matter what.] */
|
* this page no matter what.] */
|
||||||
write_http_response_header_impl(conn, dlen, "text/html", "identity",
|
write_http_response_header_impl(conn, dlen, "text/html", "identity",
|
||||||
NULL, DIRPORTFRONTPAGE_CACHE_LIFETIME);
|
NULL, DIRPORTFRONTPAGE_CACHE_LIFETIME);
|
||||||
connection_write_to_buf(frontpage, dlen, TO_CONN(conn));
|
connection_write_to_buf(frontpage, dlen, TO_CONN(conn));
|
||||||
} else {
|
} else {
|
||||||
write_http_status_line(conn, 404, "Not found");
|
write_http_status_line(conn, 404, "Not found");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user