From 6a2b11ae6e732e55e3f5d5968beaf33e77fcf24f Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Fri, 30 Aug 2002 04:47:57 +0000 Subject: [PATCH] The style police just get really annoyed with this file in general. (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 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 77aa7d910e..131e731dba 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -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); } } } -- 2.40.0