1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

Trim trailing whitespaces.

This commit is contained in:
Laurent MONIN 2006-06-14 14:46:30 +02:00 committed by Laurent MONIN
parent ee8500b1d2
commit b373ded19b
2 changed files with 7 additions and 7 deletions

View File

@ -813,7 +813,7 @@ http_send_header(struct socket *socket)
if (http_negotiate_output(uri, &header) != 0)
#endif
entry = find_auth(uri);
if (entry) {
if (entry->digest) {
unsigned char *response;
@ -1334,7 +1334,7 @@ get_header(struct read_buffer *rb)
/* returns 1 if we need retry the connection (for negotiate-auth only) */
static int
check_http_authentication(struct connection *conn, struct uri *uri,
check_http_authentication(struct connection *conn, struct uri *uri,
unsigned char *header, unsigned char *header_field)
{
unsigned char *str, *d;
@ -1608,12 +1608,12 @@ again:
}
if (h == 401) {
if (check_http_authentication(conn, uri,
if (check_http_authentication(conn, uri,
conn->cached->head, "WWW-Authenticate")) {
retry_connection(conn, S_RESTART);
return;
}
}
if (h == 407) {
unsigned char *str;

View File

@ -19,7 +19,7 @@ base64_encode(register unsigned char *in)
{
assert(in && *in);
if_assert_failed return NULL;
return base64_encode_bin(in, strlen(in), NULL);
}
@ -62,12 +62,12 @@ base64_encode_bin(register unsigned char *in, int inlen, int *outlen)
return outstr;
}
/* Base64 decoding is used only with the CONFIG_FORMHIST or CONFIG_GSSAPI
/* Base64 decoding is used only with the CONFIG_FORMHIST or CONFIG_GSSAPI
feature, so i'll #ifdef it */
#if defined(CONFIG_FORMHIST) || defined(CONFIG_GSSAPI)
unsigned char *
base64_decode(register unsigned char *in)
base64_decode(register unsigned char *in)
{
assert(in && *in);
if_assert_failed return NULL;