minor other things in my sandbox

svn:r12934
This commit is contained in:
Roger Dingledine 2007-12-23 01:28:25 +00:00
parent 61bd5583d9
commit 9dcde682f5
2 changed files with 4 additions and 4 deletions

View file

@ -57,8 +57,8 @@ R - bridge communities
o make the Alternate*Authority config options pass a "default_type" o make the Alternate*Authority config options pass a "default_type"
to parse_dir_server_line() so they don't demand as much redundancy to parse_dir_server_line() so they don't demand as much redundancy
o some sort of reachability testing on bridges o some sort of reachability testing on bridges
- a dir-based way to fetch the bridge networkstatus list o a dir-based way to fetch the bridge networkstatus list
- there's a config option with a password and somehow use an o there's a config option with a password and somehow use an
http header and check it http header and check it
- clients who have a password configured decide to ask their bridge - clients who have a password configured decide to ask their bridge
authority for a networkstatus authority for a networkstatus

View file

@ -995,7 +995,7 @@ http_get_header(const char *headers, const char *which)
{ {
const char *cp = headers; const char *cp = headers;
while (cp) { while (cp) {
if (!strcmpstart(cp, which)) { if (!strcasecmpstart(cp, which)) {
char *eos; char *eos;
cp += strlen(which); cp += strlen(which);
if ((eos = strchr(cp,'\r'))) if ((eos = strchr(cp,'\r')))
@ -2600,7 +2600,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
char *secret; char *secret;
int r; int r;
header = http_get_header(headers, "Authorization: basic "); header = http_get_header(headers, "Authorization: Basic ");
if (!header) { if (!header) {
write_http_status_line(conn, 404, "Not found"); write_http_status_line(conn, 404, "Not found");