diff options
| author | Shulhan <ms@kilabit.info> | 2024-02-18 18:27:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-02-18 18:27:59 +0700 |
| commit | e89e0f0857a1d3a6f3079bbecea45a255df431f0 (patch) | |
| tree | aace2a707a89af37cee25abb1cedeb6f8b51993c /http_server_test.go | |
| parent | 8d27c8b6fa922fbb90bde8ba3675abf535d12422 (diff) | |
| download | gorankusu-e89e0f0857a1d3a6f3079bbecea45a255df431f0.tar.xz | |
example: add POST header that can return custom HTTP response code
In some cases we found that if the HTTP response code is 202 the JSON
response body is not indented.
Turns out this is caused by HTTP Content-Type in response is
"text/plain".
Closes: https://todo.sr.ht/~shulhan/gorankusu/6
Diffstat (limited to 'http_server_test.go')
0 files changed, 0 insertions, 0 deletions
