• Need a test case with spaces included in a cookie

Question related to mission Cookies


I have a solution that passes the tests but shouldn't. The obvious split creates a dictionary with a key ' ffo' instead of 'ffo'. I can get all tests to pass if I use cookie = cookie.replace(' ', ''). But a legal cookie like 'Expires=Wed, 09 Jun 2021 10:18:14 GMT' then gets squished to 'Expires=Wed,09Jun202110:18:14GMT' which is not correct.

Suggest you include a test case with whitespace in the return value.