Browse Source

Fix comment for directory_handle_command_get

Nick Mathewson 8 years ago
parent
commit
03ae44a9e8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/or/directory.c

+ 3 - 2
src/or/directory.c

@@ -2924,8 +2924,9 @@ static const url_table_ent_t url_table[] = {
 /** Helper function: called when a dirserver gets a complete HTTP GET
  * request.  Look for a request for a directory or for a rendezvous
  * service descriptor.  On finding one, write a response into
- * conn-\>outbuf.  If the request is unrecognized, send a 400.
- * Always return 0. */
+ * conn-\>outbuf.  If the request is unrecognized, send a 404.
+ * Return 0 if we handled this successfully, or -1 if we need to close
+ * the connection. */
 STATIC int
 directory_handle_command_get(dir_connection_t *conn, const char *headers,
                              const char *req_body, size_t req_body_len)