<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -477,10 +477,10 @@ note_ntlm_auth_failure(request_rec * r)
 
     line = apr_pstrdup(r-&gt;pool, NTLM_AUTH_NAME);
 
-    apr_table_setn(r-&gt;err_headers_out, r-&gt;proxyreq ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, line);
+    apr_table_setn(r-&gt;err_headers_out, r-&gt;proxyreq &amp;&amp; 0 ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, line);
     if (crec-&gt;ntlm_basic_on) {
         line = apr_pstrcat(r-&gt;pool, &quot;Basic realm=\&quot;&quot;, crec-&gt;ntlm_basic_realm, &quot;\&quot;&quot;, NULL);
-        apr_table_addn(r-&gt;err_headers_out, r-&gt;proxyreq ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, line);
+        apr_table_addn(r-&gt;err_headers_out, r-&gt;proxyreq &amp;&amp; 0 ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, line);
     }
 }
 
@@ -494,7 +494,7 @@ ntlmssp_info_rec *
 get_ntlm_header(request_rec * r, ntlm_config_rec * crec)
 {
     const char *auth_line = apr_table_get(r-&gt;headers_in,
-                                         r-&gt;proxyreq ? &quot;Proxy-Authorization&quot;
+                                         r-&gt;proxyreq &amp;&amp; 0 ? &quot;Proxy-Authorization&quot;
                                          : &quot;Authorization&quot;);
     unsigned char *msg;
     int len, foo;
@@ -576,8 +576,8 @@ send_ntlm_challenge(request_rec * r, ntlm_config_rec * crec, int win9x)
 		r-&gt;connection-&gt;keepalives -= 1;
 	}
 
-    apr_table_setn(r-&gt;err_headers_out, r-&gt;proxyreq ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, apr_psprintf(r-&gt;pool, &quot;%s %s&quot;, NTLM_AUTH_NAME, challenge));
-    log(r, APLOG_INFO, &quot;send %s \&quot;%s %s\&quot;&quot;,r-&gt;proxyreq ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, NTLM_AUTH_NAME, challenge);
+    apr_table_setn(r-&gt;err_headers_out, r-&gt;proxyreq &amp;&amp; 0 ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, apr_psprintf(r-&gt;pool, &quot;%s %s&quot;, NTLM_AUTH_NAME, challenge));
+    log(r, APLOG_INFO, &quot;send %s \&quot;%s %s\&quot;&quot;,r-&gt;proxyreq &amp;&amp; 0 ? &quot;Proxy-Authenticate&quot; : &quot;WWW-Authenticate&quot;, NTLM_AUTH_NAME, challenge);
 
     return HTTP_UNAUTHORIZED;
 }
@@ -804,7 +804,7 @@ static int
 authenticate_user(request_rec * r)
 {
     ntlm_config_rec *crec = (ntlm_config_rec *) ap_get_module_config(r-&gt;per_dir_config, &amp;ntlm_module);
-    const char *auth_line = apr_table_get(r-&gt;headers_in, r-&gt;proxyreq ? &quot;Proxy-Authorization&quot; : &quot;Authorization&quot;);
+    const char *auth_line = apr_table_get(r-&gt;headers_in, r-&gt;proxyreq &amp;&amp; 0 ? &quot;Proxy-Authorization&quot; : &quot;Authorization&quot;);
 
     if (!crec-&gt;ntlm_on) return DECLINED;
 </diff>
      <filename>mod_ntlm.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ca032b7d00b23525dd4d04b205ab3921f741c2f5</id>
    </parent>
  </parents>
  <author>
    <name>Raimonds Simanovskis</name>
    <email>raimonds.simanovskis@gmail.com</email>
  </author>
  <url>http://github.com/rsim/mod_ntlm/commit/3101f1e8ff209be681cef3674c5f7f7934e4db81</url>
  <id>3101f1e8ff209be681cef3674c5f7f7934e4db81</id>
  <committed-date>2008-11-24T05:30:42-08:00</committed-date>
  <authored-date>2008-11-24T05:30:42-08:00</authored-date>
  <message>always return WWW-Authenticate instead of Proxy-Authenticate</message>
  <tree>28b1bcedffca9206c3f9adb90abd45bac74214a0</tree>
  <committer>
    <name>Raimonds Simanovskis</name>
    <email>raimonds.simanovskis@gmail.com</email>
  </committer>
</commit>
