Refactor 'maybeEndHeaders' for adding the EndHeaders flag.
Refactor 'maybeEndHeaders' for adding the EndHeaders flag.

urbanslug/wai,utdemir/wai,frontrowed/wai,awpr/wai,creichert/wai,kazu-yamamoto/wai,soenkehahn/wai,rgrinberg/wai,erikd/wai,utdemir/wai,awpr/wai,kazu-yamamoto/wai,frontrowed/wai,dylex/wai,rgrinberg/wai,dylex/wai,tolysz/wai,coypoop/wai,coypoop/wai,awpr/wai,yesodweb/wai,rgrinberg/wai,urbanslug/wai,soenkehahn/wai,sordina/wai,tolysz/wai,frontrowed/wai,utdemir/wai,erikd/wai,rgrinberg/wai,urbanslug/wai,tolysz/wai,creichert/wai,dylex/wai,tolysz/wai,dylex/wai,sordina/wai,sordina/wai,erikd/wai,utdemir/wai,coypoop/wai,rgrinberg/wai,coypoop/wai,soenkehahn/wai,sordina/wai,awpr/wai,erikd/wai,frontrowed/wai,yesodweb/wai,soenkehahn/wai,urbanslug/wai