Files
nomad/command
Luiz Aoqui fd7337c141 cli: set content length on operator api requests (#14634)
http.NewRequestWithContext will only set the right value for
Content-Length if the input is *bytes.Buffer, *bytes.Reader, or
*strings.Reader [0].

Since os.Stdin is an os.File, POST requests made with the `nomad
operator api` command would always have Content-Length set to -1, which
is interpreted as an unknown length by web servers.

[0]: https://pkg.go.dev/net/http#NewRequestWithContext
2022-09-26 14:21:40 -04:00
..
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2020-12-09 11:05:18 -08:00
2020-11-30 11:12:06 -05:00
2022-04-22 09:15:51 -05:00
2021-03-31 16:37:09 -04:00