coder/coder-v1-cli

Consider setting conte-type/encoding/accept header in the client

creack opened this issue · 0 comments

We currently send json payload without setting the standard HTTP headers, is that something we'd want to add?

ref: https://github.com/cdr/coder-cli/pull/113/files/e9acc2d136705a4658738c93bfe0c9c4e5668613#diff-ca60624a7185cc1dead6d0b74a91b06aR36

It might also be interesting to check those header on the way back when parsing the response body.