{"action":"closed","issue":{"url":"https://api.github.com/repos/didip/tollbooth/issues/7","labels_url":"https://api.github.com/repos/didip/tollbooth/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/didip/tollbooth/issues/7/comments","events_url":"https://api.github.com/repos/didip/tollbooth/issues/7/events","html_url":"https://github.com/didip/tollbooth/issues/7","id":88830850,"number":7,"title":"http: multiple response.WriteHeader calls","user":{"login":"ansel1","id":107825,"avatar_url":"https://avatars.githubusercontent.com/u/107825?v=3","gravatar_id":"","url":"https://api.github.com/users/ansel1","html_url":"https://github.com/ansel1","followers_url":"https://api.github.com/users/ansel1/followers","following_url":"https://api.github.com/users/ansel1/following{/other_user}","gists_url":"https://api.github.com/users/ansel1/gists{/gist_id}","starred_url":"https://api.github.com/users/ansel1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansel1/subscriptions","organizations_url":"https://api.github.com/users/ansel1/orgs","repos_url":"https://api.github.com/users/ansel1/repos","events_url":"https://api.github.com/users/ansel1/events{/privacy}","received_events_url":"https://api.github.com/users/ansel1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-16T20:22:45Z","updated_at":"2015-06-17T21:57:58Z","closed_at":"2015-06-17T21:57:58Z","body":"Using the LimitHandler() function, once limiting occurs, you see error messages from the http library.  It's issue is that in tollbooth.go:145, you call w.Write(), followed by w.WriteHeader.  I think you need to call WriteHeader first.   You can't write the headers after writing the body."}}