Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Tue, 30 Jan 2018 07:54:00 +0000 Debugging multiple response writeheader calls <p>Say you’re building a HTTP service in <a href="https://golang.org/" style="box-sizing: border-box; color: rgb(51, 122, 183);">Go</a>&nbsp;and suddenly it starts giving you these:</p><pre style="box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; padding: 20px; margin-top: 10px; margin-bottom: 10px; line-height: 15px; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(253, 253, 253); border: 1px solid rgb(221, 221, 221); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; font-variant-ligatures: normal; orphans: 2; widows: 2; background-position: initial initial; background-repeat: initial initial;"><code style="box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: inherit; padding: 0px; color: inherit; background-color: transparent; border-radius: 0px; white-space: pre-wrap;">http: multiple response.WriteHeader calls </code></pre> <p>Horrible when that happens, right?</p><div><br></div> 5 points posted by Tim Donell https://rocketeer.be/blog/2018/01/multiple-response-writeheader-calls 3144 Fri, 26 Jan 2018 15:36:00 +0000