diff options
author | Quentin Rameau <quinq@fifth.space> | 2015-11-22 13:33:28 +0100 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2015-11-22 13:33:28 +0100 |
commit | b87123ac9b8fb9b0d9b129c1268db97441d395f0 (patch) | |
tree | 9d83fed71aba250a6674a3b0148262f7407a64f2 /surf.c | |
parent | d4ac9fb6f4b719607fa7ff13a44a78d057d27be5 (diff) | |
download | surf-b87123ac9b8fb9b0d9b129c1268db97441d395f0.tar.gz surf-b87123ac9b8fb9b0d9b129c1268db97441d395f0.tar.bz2 surf-b87123ac9b8fb9b0d9b129c1268db97441d395f0.zip |
Modify default handling of cookiepolicy functions
It's more obvious this way that the default is to always accept cookies
and not the other way around.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -485,12 +485,11 @@ cookiepolicy_get(void) return WEBKIT_COOKIE_POLICY_ACCEPT_NEVER; case '@': return WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY; + default: /* fallthrough */ case 'A': - default: - break; + return WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS; } - return WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS; } char @@ -501,12 +500,11 @@ cookiepolicy_set(const WebKitCookieAcceptPolicy p) return 'a'; case WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY: return '@'; + default: /* fallthrough */ case WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS: - default: - break; + return 'A'; } - return 'A'; } const char * |