summaryrefslogtreecommitdiff
path: root/auth/auth_basic.c
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2013-06-03 18:34:10 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2013-06-03 18:34:10 +0000
commitf143c3cab79c59dd57124f19d16ac35253843136 (patch)
tree9fa67aa3d59e9d96f5f37858e95c4ab91960ea92 /auth/auth_basic.c
parent6f61a1acd01dc2ad1d2f5c1f7458702c77c69f9c (diff)
downloadlibserf-tarball-fb6ad73dfc340d81d364f2c8bf791bcf6e84fb67.tar.gz
Diffstat (limited to 'auth/auth_basic.c')
-rw-r--r--auth/auth_basic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth/auth_basic.c b/auth/auth_basic.c
index b876cb8..7a0589c 100644
--- a/auth/auth_basic.c
+++ b/auth/auth_basic.c
@@ -130,8 +130,10 @@ serf__init_basic_connection(int code,
}
apr_status_t
-serf__setup_request_basic_auth(int code,
+serf__setup_request_basic_auth(peer_t peer,
+ int code,
serf_connection_t *conn,
+ serf_request_t *request,
const char *method,
const char *uri,
serf_bucket_t *hdrs_bkt)
@@ -139,7 +141,7 @@ serf__setup_request_basic_auth(int code,
serf_context_t *ctx = conn->ctx;
basic_authn_info_t *authn_info;
- if (code == 401) {
+ if (peer == HOST) {
authn_info = ctx->authn_info.baton;
} else {
authn_info = ctx->proxy_authn_info.baton;