{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/9778","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/9778/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9778/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/9778/events","html_url":"https://github.com/cakephp/cakephp/issues/9778","id":190315843,"number":9778,"title":"\"HTTP/1.1 400\" is not valid header name","user":{"login":"binarycrafts","id":971090,"avatar_url":"https://avatars.githubusercontent.com/u/971090?v=3","gravatar_id":"","url":"https://api.github.com/users/binarycrafts","html_url":"https://github.com/binarycrafts","followers_url":"https://api.github.com/users/binarycrafts/followers","following_url":"https://api.github.com/users/binarycrafts/following{/other_user}","gists_url":"https://api.github.com/users/binarycrafts/gists{/gist_id}","starred_url":"https://api.github.com/users/binarycrafts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarycrafts/subscriptions","organizations_url":"https://api.github.com/users/binarycrafts/orgs","repos_url":"https://api.github.com/users/binarycrafts/repos","events_url":"https://api.github.com/users/binarycrafts/events{/privacy}","received_events_url":"https://api.github.com/users/binarycrafts/received_events","type":"User","site_admin":false},"labels":[{"id":60504544,"url":"https://api.github.com/repos/cakephp/cakephp/labels/Defect","name":"Defect","color":"f7c6c7","default":false},{"id":60525626,"url":"https://api.github.com/repos/cakephp/cakephp/labels/On%20hold","name":"On hold","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/111","html_url":"https://github.com/cakephp/cakephp/milestones/3.3.9","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/111/labels","id":2117772,"number":111,"title":"3.3.9","description":"Bugfixes and minor features for 3.3.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":31,"state":"open","created_at":"2016-11-07T02:36:42Z","updated_at":"2016-11-18T18:15:04Z","due_on":"2016-11-20T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-18T13:10:59Z","updated_at":"2016-11-21T08:30:34Z","closed_at":null,"body":"This is a (multiple allowed):\r\n\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.3.8\r\n* Platform and Target: nginx, postgres, phpleague/oauth2-server v.4, uafrica/oauth-server\r\n\r\n### What you did\r\nGET request to a Cake controller which is declined by the OAuth server w/ 400 HTTP code.\r\n\r\n### What happened\r\nThe header returned by phpleague/oauth2-server HTTP/1.1 400 is invalidated by Zend\\Diactoros\r\nI see\r\n\"HTTP/1.1 400\" is not valid header name\r\n\r\n### What you expected to happen\r\nThe header should not be invalidated and the regular 400 response should be returned.\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/261874237","html_url":"https://github.com/cakephp/cakephp/issues/9778#issuecomment-261874237","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/9778","id":261874237,"user":{"login":"binarycrafts","id":971090,"avatar_url":"https://avatars.githubusercontent.com/u/971090?v=3","gravatar_id":"","url":"https://api.github.com/users/binarycrafts","html_url":"https://github.com/binarycrafts","followers_url":"https://api.github.com/users/binarycrafts/followers","following_url":"https://api.github.com/users/binarycrafts/following{/other_user}","gists_url":"https://api.github.com/users/binarycrafts/gists{/gist_id}","starred_url":"https://api.github.com/users/binarycrafts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarycrafts/subscriptions","organizations_url":"https://api.github.com/users/binarycrafts/orgs","repos_url":"https://api.github.com/users/binarycrafts/repos","events_url":"https://api.github.com/users/binarycrafts/events{/privacy}","received_events_url":"https://api.github.com/users/binarycrafts/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T08:30:34Z","updated_at":"2016-11-21T08:30:34Z","body":"```\r\n\"Stack Trace:\"\r\n\"#0 /var/www/vendor/zendframework/zend-diactoros/src/Response.php(193): Zend\\Diactoros\\HeaderSecurity::assertValidName('HTTP/1.1 400')\"\r\n\"#1 /var/www/vendor/zendframework/zend-diactoros/src/Response.php(126): Zend\\Diactoros\\Response->assertHeaders(Array)\"\r\n\"#2 /var/www/vendor/cakephp/cakephp/src/Http/ResponseTransformer.php(171): Zend\\Diactoros\\Response->__construct(Object(Zend\\Diactoros\\Stream), 400, Array)\"\r\n\"#3 /var/www/vendor/cakephp/cakephp/src/Http/BaseApplication.php(86): Cake\\Http\\ResponseTransformer::toPsr(Object(Cake\\Network\\Response))\"\r\n\"#4 /var/www/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\\Http\\BaseApplication->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response), Object(Cake\\Http\\Runner))\"\r\n\"#5 /var/www/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php(62): Cake\\Http\\Runner->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))\"\r\n\"#6 /var/www/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\\Routing\\Middleware\\RoutingMiddleware->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response), Object(Cake\\Http\\Runner))\"\r\n\"#7 /var/www/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php(88): Cake\\Http\\Runner->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))\"\r\n\"#8 /var/www/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\\Routing\\Middleware\\AssetMiddleware->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response), Object(Cake\\Http\\Runner))\"\r\n\"#9 /var/www/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php(81): Cake\\Http\\Runner->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))\"\r\n\"#10 /var/www/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\\Error\\Middleware\\ErrorHandlerMiddleware->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response), Object(Cake\\Http\\Runner))\"\r\n\"#11 /var/www/vendor/cakephp/cakephp/src/Http/Runner.php(51): Cake\\Http\\Runner->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))\"\r\n\"#12 /var/www/vendor/cakephp/cakephp/src/Http/Server.php(92): Cake\\Http\\Runner->run(Object(Cake\\Http\\MiddlewareQueue), Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))\"\r\n\"#13 /var/www/webroot/index.php(37): Cake\\Http\\Server->run()\"\r\n\"#14 {main}\""}}
{"actor":{"display_login":"binarycrafts"}}