mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Trim trailing whitespaces.
This commit is contained in:
parent
ee8500b1d2
commit
b373ded19b
@ -813,7 +813,7 @@ http_send_header(struct socket *socket)
|
|||||||
if (http_negotiate_output(uri, &header) != 0)
|
if (http_negotiate_output(uri, &header) != 0)
|
||||||
#endif
|
#endif
|
||||||
entry = find_auth(uri);
|
entry = find_auth(uri);
|
||||||
|
|
||||||
if (entry) {
|
if (entry) {
|
||||||
if (entry->digest) {
|
if (entry->digest) {
|
||||||
unsigned char *response;
|
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) */
|
/* returns 1 if we need retry the connection (for negotiate-auth only) */
|
||||||
static int
|
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 *header, unsigned char *header_field)
|
||||||
{
|
{
|
||||||
unsigned char *str, *d;
|
unsigned char *str, *d;
|
||||||
@ -1608,12 +1608,12 @@ again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (h == 401) {
|
if (h == 401) {
|
||||||
if (check_http_authentication(conn, uri,
|
if (check_http_authentication(conn, uri,
|
||||||
conn->cached->head, "WWW-Authenticate")) {
|
conn->cached->head, "WWW-Authenticate")) {
|
||||||
retry_connection(conn, S_RESTART);
|
retry_connection(conn, S_RESTART);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (h == 407) {
|
if (h == 407) {
|
||||||
unsigned char *str;
|
unsigned char *str;
|
||||||
|
@ -19,7 +19,7 @@ base64_encode(register unsigned char *in)
|
|||||||
{
|
{
|
||||||
assert(in && *in);
|
assert(in && *in);
|
||||||
if_assert_failed return NULL;
|
if_assert_failed return NULL;
|
||||||
|
|
||||||
return base64_encode_bin(in, strlen(in), 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;
|
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 */
|
feature, so i'll #ifdef it */
|
||||||
#if defined(CONFIG_FORMHIST) || defined(CONFIG_GSSAPI)
|
#if defined(CONFIG_FORMHIST) || defined(CONFIG_GSSAPI)
|
||||||
|
|
||||||
unsigned char *
|
unsigned char *
|
||||||
base64_decode(register unsigned char *in)
|
base64_decode(register unsigned char *in)
|
||||||
{
|
{
|
||||||
assert(in && *in);
|
assert(in && *in);
|
||||||
if_assert_failed return NULL;
|
if_assert_failed return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user