{"action":"created","issue":{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/527","repository_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2","labels_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/527/comments","events_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/527/events","html_url":"https://github.com/tatsuhiro-t/nghttp2/issues/527","id":138493199,"number":527,"title":"Add callback function to tell application which header field caused error","user":{"login":"tatsuhiro-t","id":404610,"avatar_url":"https://avatars.githubusercontent.com/u/404610?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsuhiro-t","html_url":"https://github.com/tatsuhiro-t","followers_url":"https://api.github.com/users/tatsuhiro-t/followers","following_url":"https://api.github.com/users/tatsuhiro-t/following{/other_user}","gists_url":"https://api.github.com/users/tatsuhiro-t/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsuhiro-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsuhiro-t/subscriptions","organizations_url":"https://api.github.com/users/tatsuhiro-t/orgs","repos_url":"https://api.github.com/users/tatsuhiro-t/repos","events_url":"https://api.github.com/users/tatsuhiro-t/events{/privacy}","received_events_url":"https://api.github.com/users/tatsuhiro-t/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/labels/lib","name":"lib","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-04T14:48:51Z","updated_at":"2016-03-04T16:04:55Z","closed_at":null,"body":"As [documented](https://nghttp2.org/documentation/programmers-guide.html#http-messaging), nghttp2 library checks incoming HTTP header field, and if it violates HTTP messaging rules, it resets stream with RST_STREAM.\r\nThe problem is there is no mechanism to tell the application which header field caused this.\r\nTo know its header, we have to recompile nghttp2 with --enable-debug configure option, which is very tedious.\r\nIt would be extremely useful if we have a callback to tell which header field is bad."},"comment":{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/comments/192335139","html_url":"https://github.com/tatsuhiro-t/nghttp2/issues/527#issuecomment-192335139","issue_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/527","id":192335139,"user":{"login":"LPardue","id":6571445,"avatar_url":"https://avatars.githubusercontent.com/u/6571445?v=3","gravatar_id":"","url":"https://api.github.com/users/LPardue","html_url":"https://github.com/LPardue","followers_url":"https://api.github.com/users/LPardue/followers","following_url":"https://api.github.com/users/LPardue/following{/other_user}","gists_url":"https://api.github.com/users/LPardue/gists{/gist_id}","starred_url":"https://api.github.com/users/LPardue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LPardue/subscriptions","organizations_url":"https://api.github.com/users/LPardue/orgs","repos_url":"https://api.github.com/users/LPardue/repos","events_url":"https://api.github.com/users/LPardue/events{/privacy}","received_events_url":"https://api.github.com/users/LPardue/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T16:04:55Z","updated_at":"2016-03-04T16:04:55Z","body":"Does this change relate to checking pseudo header field, HTTP header fields or both?\r\n\r\nWhat happens if there are multiple invalid headers?"}}