{"action":"created","issue":{"url":"https://api.github.com/repos/boostorg/beast/issues/1191","repository_url":"https://api.github.com/repos/boostorg/beast","labels_url":"https://api.github.com/repos/boostorg/beast/issues/1191/labels{/name}","comments_url":"https://api.github.com/repos/boostorg/beast/issues/1191/comments","events_url":"https://api.github.com/repos/boostorg/beast/issues/1191/events","html_url":"https://github.com/boostorg/beast/issues/1191","id":341269955,"node_id":"MDU6SXNzdWUzNDEyNjk5NTU=","number":1191,"title":"Specify different 'Fields' container allowing multiple identically named headers?","user":{"login":"carolinebeltran","id":7103180,"node_id":"MDQ6VXNlcjcxMDMxODA=","avatar_url":"https://avatars0.githubusercontent.com/u/7103180?v=4","gravatar_id":"","url":"https://api.github.com/users/carolinebeltran","html_url":"https://github.com/carolinebeltran","followers_url":"https://api.github.com/users/carolinebeltran/followers","following_url":"https://api.github.com/users/carolinebeltran/following{/other_user}","gists_url":"https://api.github.com/users/carolinebeltran/gists{/gist_id}","starred_url":"https://api.github.com/users/carolinebeltran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolinebeltran/subscriptions","organizations_url":"https://api.github.com/users/carolinebeltran/orgs","repos_url":"https://api.github.com/users/carolinebeltran/repos","events_url":"https://api.github.com/users/carolinebeltran/events{/privacy}","received_events_url":"https://api.github.com/users/carolinebeltran/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-14T21:30:46Z","updated_at":"2018-07-15T02:10:35Z","closed_at":"2018-07-15T00:32:38Z","author_association":"NONE","body":"### Version of Beast\r\n\r\nBeast 167\r\n\r\n### Steps necessary to reproduce the problem\r\n\r\nhttp::response<http::string_body> res{ };\r\nres.set(\"Set-Cookie\", \"theme = dark;\");\r\nres.set(\"Set-Cookie\", \"token = abc123;\");\r\n\r\n### All relevant compiler information\r\n\r\nNo compiler errors.\r\n\r\nThe problem with my code above is that the default 'Fields' container will only permit you to add unique header names.  This is a problem when trying to set more than one cookie since each distinct cookie requires its very own 'Set-Cookie' header.\r\n\r\nExample desired response output:\r\n\r\nHTTP/1.0 200 OK\r\nSet-Cookie: theme = dark;\r\nSet-Cookie: token = abc123;\r\n…\r\n\r\nIs there an example of how to override the default 'Fields' container with one that will allow multiple identical header names?  Thank you!\r\n"},"comment":{"url":"https://api.github.com/repos/boostorg/beast/issues/comments/405062197","html_url":"https://github.com/boostorg/beast/issues/1191#issuecomment-405062197","issue_url":"https://api.github.com/repos/boostorg/beast/issues/1191","id":405062197,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTA2MjE5Nw==","user":{"login":"vinniefalco","id":1503976,"node_id":"MDQ6VXNlcjE1MDM5NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1503976?v=4","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"created_at":"2018-07-15T02:10:35Z","updated_at":"2018-07-15T02:10:35Z","author_association":"MEMBER","body":"By the way, I think you can instead write:\r\n```\r\nhttp::responsehttp::string_body res{ };\r\nres.set(http::field::set_cookie, \"theme = dark;\");\r\nres.set(http::field::set_cookie, \"token = abc123;\");\r\n```"}}
{"actor":{"display_login":"vinniefalco"}}