From: Adam Dickmeiss Date: Mon, 6 May 2013 10:26:25 +0000 (+0200) Subject: z_HTTP_header_add_basic_auth uses z_HTTP_header_set X-Git-Tag: v4.2.57~4 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=5f5ce1a79c4061098904a01ff9c9e723e9d6e7b9;p=yaz-moved-to-github.git z_HTTP_header_add_basic_auth uses z_HTTP_header_set rather than z_HTTP_header_add, to avoid having two Authorization headers by mistake. --- diff --git a/src/http.c b/src/http.c index 62bfa6f..6f53119 100644 --- a/src/http.c +++ b/src/http.c @@ -191,7 +191,7 @@ void z_HTTP_header_add_basic_auth(ODR o, Z_HTTP_Header **hp, buf = (char *) odr_malloc(o, (len+1) * 8/6 + 12); strcpy(buf, "Basic "); yaz_base64encode(tmp, &buf[strlen(buf)]); - z_HTTP_header_add(o, hp, "Authorization", buf); + z_HTTP_header_set(o, hp, "Authorization", buf); }