Some http status lines ended in a dot, others did not. Make it all the same and remove the period from all

svn:r5270
This commit is contained in:
Peter Palfrader 2005-10-18 14:57:46 +00:00
parent 0186cb283f
commit 64a631e187

View File

@ -1332,7 +1332,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
dirserv_get_routerdescs(descs, url); dirserv_get_routerdescs(descs, url);
tor_free(url); tor_free(url);
if (!smartlist_len(descs)) { if (!smartlist_len(descs)) {
write_http_status_line(conn, 404, "Servers unavailable."); write_http_status_line(conn, 404, "Servers unavailable");
} else { } else {
size_t len = 0; size_t len = 0;
format_rfc1123_time(date, time(NULL)); format_rfc1123_time(date, time(NULL));
@ -1395,7 +1395,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
* if we're gone to the site recently, and 404 if we haven't. * if we're gone to the site recently, and 404 if we haven't.
* *
* Reject. */ * Reject. */
write_http_status_line(conn, 400, "Nonauthoritative directory does not not store rendezvous descriptors."); write_http_status_line(conn, 400, "Nonauthoritative directory does not not store rendezvous descriptors");
tor_free(url); tor_free(url);
return 0; return 0;
} }
@ -1445,7 +1445,7 @@ directory_handle_command_post(connection_t *conn, char *headers,
if (!authdir_mode(get_options())) { if (!authdir_mode(get_options())) {
/* we just provide cached directories; we don't want to /* we just provide cached directories; we don't want to
* receive anything. */ * receive anything. */
write_http_status_line(conn, 400, "Nonauthoritative directory does not accept posted server descriptors."); write_http_status_line(conn, 400, "Nonauthoritative directory does not accept posted server descriptors");
return 0; return 0;
} }