From 8ae394545a5e14bfd29bbbf627c67b7e5a029a05 Mon Sep 17 00:00:00 2001 From: kush789 Date: Thu, 28 Jan 2016 01:19:29 +0530 Subject: [PATCH] Fixed recommendatin II of draft --- src/cookies.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cookies.c b/src/cookies.c index 156bd61..0e88ade 100644 --- a/src/cookies.c +++ b/src/cookies.c @@ -857,8 +857,7 @@ cookie_handle_set_cookie (struct cookie_jar *jar, } } -#ifdef HAVE_SSL - if ((cookie->secure == 0) && (scheme != SCHEME_HTTPS)) + if ((cookie->secure == 0) && (scheme == SCHEME_HTTP)) { /* If an old cookie exists such that the all of the following are true, then discard the new cookie. @@ -881,7 +880,6 @@ cookie_handle_set_cookie (struct cookie_jar *jar, goto out; } } -#endif /* Now store the cookie, or discard an existing cookie, if discarding was requested. */ -- 1.9.1