Hmm, this is a bit like this:

http://sourceforge.net/mailarchive/forum.php?thread_name=a9250c0b0702221615x5c0ab5e8gf8983c7c912a7520%40mail.gmail.com&forum_name=naviserver-devel

Maybe we need the full set of add, conditonaly add and replace for the
printf version?


On 5/20/07, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
> Update of /cvsroot/naviserver/naviserver/nsd
> In directory sc8-pr-cvs16:/tmp/cvs-serv11302/nsd
>
> Modified Files:
>         returnresp.c
> Log Message:
>         * nsd/returnresp.c: In Ns_ConnReturnUnauthorized check if header
>         WWW-Authenticate already exists, this is in anticipation of new
>         Digest auth method to be implemented soon.
>
>
>
> Index: returnresp.c
> ===================================================================
> RCS file: /cvsroot/naviserver/naviserver/nsd/returnresp.c,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -C2 -d -r1.2 -r1.3
> *** returnresp.c        16 May 2007 16:04:09 -0000      1.2
> --- returnresp.c        20 May 2007 00:24:29 -0000      1.3
> ***************
> *** 331,340 ****
>       int         result;
>
> !     Ns_DStringInit(&ds);
> !     Ns_DStringVarAppend(&ds, "Basic realm=\"",
> !                         connPtr->servPtr->opts.realm, "\"", NULL);
> !     Ns_ConnSetHeaders(conn, "WWW-Authenticate", ds.string);
> !     Ns_DStringFree(&ds);
> !
>       if (ReturnRedirect(conn, 401, &result)) {
>           return result;
> --- 331,341 ----
>       int         result;
>
> !     if (Ns_SetIGet(conn->outputheaders, "WWW-Authenticate") == NULL) {
> !         Ns_DStringInit(&ds);
> !         Ns_DStringVarAppend(&ds, "Basic realm=\"",
> !                             connPtr->servPtr->opts.realm, "\"", NULL);
> !         Ns_ConnSetHeaders(conn, "WWW-Authenticate", ds.string);
> !         Ns_DStringFree(&ds);
> !     }
>       if (ReturnRedirect(conn, 401, &result)) {
>           return result;
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> naviserver-commits mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/naviserver-commits
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to