{"action":"closed","issue":{"url":"https://api.github.com/repos/MasoniteFramework/core/issues/488","repository_url":"https://api.github.com/repos/MasoniteFramework/core","labels_url":"https://api.github.com/repos/MasoniteFramework/core/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/MasoniteFramework/core/issues/488/comments","events_url":"https://api.github.com/repos/MasoniteFramework/core/issues/488/events","html_url":"https://github.com/MasoniteFramework/core/issues/488","id":385417364,"node_id":"MDU6SXNzdWUzODU0MTczNjQ=","number":488,"title":"Getting a header should return empty string instead of None","user":{"login":"josephmancuso","id":20172538,"node_id":"MDQ6VXNlcjIwMTcyNTM4","avatar_url":"https://avatars1.githubusercontent.com/u/20172538?v=4","gravatar_id":"","url":"https://api.github.com/users/josephmancuso","html_url":"https://github.com/josephmancuso","followers_url":"https://api.github.com/users/josephmancuso/followers","following_url":"https://api.github.com/users/josephmancuso/following{/other_user}","gists_url":"https://api.github.com/users/josephmancuso/gists{/gist_id}","starred_url":"https://api.github.com/users/josephmancuso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephmancuso/subscriptions","organizations_url":"https://api.github.com/users/josephmancuso/orgs","repos_url":"https://api.github.com/users/josephmancuso/repos","events_url":"https://api.github.com/users/josephmancuso/events{/privacy}","received_events_url":"https://api.github.com/users/josephmancuso/received_events","type":"User","site_admin":false},"labels":[{"id":1042372122,"node_id":"MDU6TGFiZWwxMDQyMzcyMTIy","url":"https://api.github.com/repos/MasoniteFramework/core/labels/beta-3","name":"beta-3","color":"e67e22","default":false},{"id":1043369280,"node_id":"MDU6TGFiZWwxMDQzMzY5Mjgw","url":"https://api.github.com/repos/MasoniteFramework/core/labels/easy%20difficulty","name":"easy difficulty","color":"9bf7ae","default":false},{"id":798555915,"node_id":"MDU6TGFiZWw3OTg1NTU5MTU=","url":"https://api.github.com/repos/MasoniteFramework/core/labels/enhancement","name":"enhancement","color":"1d76db","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-28T19:15:33Z","updated_at":"2018-11-28T22:53:55Z","closed_at":"2018-11-28T22:53:55Z","author_association":"MEMBER","body":"Currently when we do something like:\r\n\r\n```python\r\nrequest.header('Content-Type')\r\n```\r\n\r\nit will return None if one doesn't exist but this will cause issues when people use it as an interator:\r\n\r\n```python\r\nif 'text/html' in request.header('Content-Type')\r\n```\r\n\r\nThis will throw an exception because` None` is not an iterator.\r\n\r\n## This should be based off the develop branch"}}
{"actor":{"display_login":"josephmancuso"}}