Pylons/webob — pull request #172 by bertjwregeer (2014-11-09 05:43:20+00:00)
Title: Fix documentation/cookie handling in response.set_cookie()

This updates `response.set_cookie()` with proper documentation, and refactors it so that it uses `webob.cookies.make_cookie()` instead of it's own implementation, code-reuse for the win!

However, this does break backwards compatibility because we no longer allow unicode cookie values, these were technically contra-spec in the first place, and may not have been accepted by all browsers.

We also change from `key` to `name` because cookies have names.

This fixes #166 and #171.