gotosocial/internal/api/util
Vyr Cossont 7e0a203173
[bugfix] Fix EmptyJSONObject/EmptyJSONArray (#2576)
* Fix EmptyJSONObject/EmptyJSONArray

These are meant to be the bytes representing an empty object and array in JSON: `{}` and `[]`. They are actually the strings `"{}"` and `"[]"`. This causes clients expecting an object or array to not be able to parse the response.

* Use json.RawMessage instead of []byte
2024-01-28 11:49:04 +01:00
..
errorhandling.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
mime.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
negotiate.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
negotiate_test.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
opengraph.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
opengraph_test.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
parsequery.go [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
response.go [bugfix] Fix EmptyJSONObject/EmptyJSONArray (#2576) 2024-01-28 11:49:04 +01:00
template.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00