Fixed header formatting and http response not clearing between requests