]> granicus.if.org Git - apache/commitdiff
The style police just get really annoyed with this file in general.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 30 Aug 2002 04:47:57 +0000 (04:47 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 30 Aug 2002 04:47:57 +0000 (04:47 +0000)
(No code changes)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96585 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index 77aa7d910e4f29940c4719ffff7011b6c529ad92..131e731dbaca47260f1d8474ee73fcde7f7903a4 100644 (file)
@@ -4163,34 +4163,34 @@ static void add_cookie(request_rec *r, char *s)
             
             notename = apr_pstrcat(rmain->pool, var, "_rewrite", NULL);
             apr_pool_userdata_get(&data, notename, rmain->pool);
-            if  (data == NULL) {
-               cookie = apr_pstrcat(rmain->pool, 
-                                    var,
-                                    "=",
-                                    val,
-                                    "; path=",
-                                    (path)? path : "/",
-                                    "; domain=",
-                                    domain,
-                                    (expires)? "; expires=" : NULL,
-                                    (expires)? 
+            if (data == NULL) {
+                cookie = apr_pstrcat(rmain->pool, 
+                                     var,
+                                     "=",
+                                     val,
+                                     "; path=",
+                                     (path)? path : "/",
+                                     "; domain=",
+                                     domain,
+                                     (expires)? "; expires=" : NULL,
+                                     (expires)? 
                                      ap_ht_time(r->pool, 
                                                 r->request_time + 
                                                 apr_time_from_sec((60 *
                                                                atol(expires))),
                                                 "%a, %d-%b-%Y %T GMT", 1)
                                            : NULL, 
-                                  NULL);                   
+                                   NULL);                   
                 /* 
-                * XXX: should we add it to err_headers_out as well ?
-                * if we do we need to be careful that only ONE gets sent out
-                */
+                 * XXX: should we add it to err_headers_out as well ?
+                 * if we do we need to be careful that only ONE gets sent out
+                 */
                 apr_table_add(rmain->err_headers_out, "Set-Cookie", cookie);
                 apr_pool_userdata_set("set", notename, NULL, rmain->pool);
                 rewritelog(rmain, 5, "setting cookie '%s'", cookie);
             }
             else {
-                rewritelog(rmain, 5, "cookie '%s' is already set..skipping", var);
+                rewritelog(rmain, 5, "skipping already set cookie '%s'", var);
             }
         }
     }