Isn't this going to send http header twice? (see https://github.com/tonyfabeen/docker/blob/e22052e538a71a3aa9e22c856314f016b9b7be22/api.go#L840)