Commit e312e210 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http_auth: remove useless predicate

Ternary: a ? b : b
parent 2e8ae8bc
......@@ -436,7 +436,7 @@ char *http_auth_FormatAuthorizationHeader(
"%s%s%s" /* cnonce */
"%s%s%s" /* opaque */
"%s%s%s" /* message qop */
"%s%08x%s", /* nonce count */
"%s=\"%08x\"", /* nonce count */
/* Mandatory parameters */
psz_username,
p_auth->psz_realm,
......@@ -457,9 +457,8 @@ char *http_auth_FormatAuthorizationHeader(
p_auth->psz_qop ? p_auth->psz_qop : "",
p_auth->psz_qop ? "\", " : "",
/* "uglyhack" will be parsed as an unhandled extension */
p_auth->i_nonce ? "nc=\"" : "uglyhack=\"",
p_auth->i_nonce,
p_auth->i_nonce ? "\"" : "\""
p_auth->i_nonce ? "nc" : "uglyhack",
p_auth->i_nonce
);
if ( i_rc < 0 )
goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment