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.
This commit is contained in:
Quentin Rameau 2015-11-22 13:33:28 +01:00
parent d4ac9fb6f4
commit b87123ac9b
1 changed files with 4 additions and 6 deletions

10
surf.c
View File

@ -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 *