Matheus Oliveira
34f592f7e7
fix(apigateway): answer an HTTP API proxy result without a Content-Type as text/plain ( #6201 )
...
* fix(apigateway): answer an HTTP API proxy result without a Content-Type as text/plain
Measured on AWS (eu-west-1, 2026-10-19): an HTTP API answers a Lambda proxy
result that carries a body and no Content-Type header of its own with
text/plain; charset=utf-8, in both payload formats. Floci fell back to
application/json, the REST API's default, so a client that trusts the
header read a plain body as JSON.
The fallback now follows the API kind: an HTTP API answers text/plain, a
REST API keeps answering application/json.
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com >
* test(apigateway): fold the Content-Type cases into the inference test
The three cases repeated the inference test's setup, route helper and
cleanup, so they join it: two results without a Content-Type in the two
payload formats, and one that names application/json. The docs say a
statusCode and a body, since a format 2.0 result without a statusCode
still takes the inferred JSON path, and the compatibility test's get
helper and parameterized name are back on one line each.
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com >
---------
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com >
2026-10-22 16:04:51 -04:00
..
2026-10-14 14:06:51 -04:00
2026-10-15 18:02:19 -04:00
2026-10-19 09:00:35 -04:00
2026-10-12 21:19:15 -04:00
2026-10-22 16:04:51 -04:00
2026-10-14 17:38:58 -04:00
2026-09-11 17:55:48 -04:00
2026-08-30 14:40:40 -05:00
2026-10-18 00:30:48 -04:00
2026-09-17 10:54:20 -04:00
2026-10-19 09:50:34 -04:00
2026-10-21 21:05:43 -04:00
2026-09-24 07:04:27 -04:00
2026-05-15 22:55:11 -05:00
2026-09-12 11:31:20 -04:00
2026-10-12 21:38:57 -04:00
2026-10-18 14:50:09 -04:00
2026-09-11 20:36:45 -04:00
2026-09-06 23:54:37 -04:00
2026-09-24 08:20:17 -04:00
2026-10-12 11:28:04 -04:00
2026-10-21 23:09:42 -04:00
2026-10-21 15:15:40 -04:00
2026-08-17 00:00:49 -05:00
2026-09-30 21:45:18 -05:00
2026-10-19 21:32:47 -05:00
2026-09-17 13:53:35 -04:00
2026-10-21 12:07:52 -04:00
2026-10-22 07:24:22 -05:00
2026-10-21 00:29:11 -04:00
2026-10-19 09:50:34 -04:00
2026-08-30 14:44:08 -05:00
2026-10-21 20:58:20 -04:00
2026-10-22 06:44:54 -04:00
2026-09-04 12:16:18 -04:00
2026-08-30 14:44:12 -05:00
2026-10-20 11:43:26 -04:00
2026-08-30 15:15:49 -04:00
2026-09-07 21:49:39 -05:00
2026-09-05 20:19:56 -04:00
2026-05-15 22:55:11 -05:00
2026-09-11 22:30:02 -04:00
2026-09-07 18:31:48 -04:00
2026-09-24 15:08:34 -04:00
2026-10-17 08:07:21 -04:00
2026-08-28 17:55:30 -04:00
2026-10-21 21:18:17 -04:00
2026-10-22 09:42:42 -04:00
2026-10-21 22:44:26 -04:00
2026-10-20 10:03:30 -04:00
2026-10-21 06:59:33 -04:00
2026-09-01 10:00:34 -04:00
2026-10-10 14:54:12 -04:00
2026-06-25 19:16:51 -05:00
2026-10-22 07:26:00 -04:00
2026-10-19 15:34:33 -04:00
2026-10-21 10:47:07 -04:00
2026-10-22 07:24:33 -05:00
2026-10-21 00:07:18 -04:00
2026-10-22 07:07:10 -04:00
2026-10-21 13:40:53 -04:00
2026-08-21 00:09:04 -04:00
2026-09-11 16:53:22 -04:00
2026-09-28 09:26:50 -04:00
2026-10-19 16:45:15 -04:00
2026-10-22 07:24:10 -05:00
2026-09-10 16:34:41 -04:00
2026-10-22 15:59:54 -04:00
2026-09-07 22:54:52 -05:00
2026-10-22 07:07:06 -04:00
2026-10-21 16:04:12 -04:00
2026-09-22 16:16:34 -04:00
2026-10-02 17:09:12 -04:00
2026-09-04 09:14:52 -04:00
2026-08-10 23:10:48 -05:00
2026-10-22 10:40:03 -04:00
2026-10-19 10:47:58 -04:00
2026-07-10 20:43:42 -05:00
2026-09-15 22:27:31 -05:00
2026-09-09 22:22:26 -05:00
2026-10-03 22:04:03 -04:00
2026-07-06 21:02:04 -05:00
2026-10-15 11:06:27 -04:00
2026-10-01 09:11:06 -04:00
2026-09-04 09:45:29 -04:00
2026-08-27 09:23:52 -04:00
2026-09-12 08:59:21 -04:00
2026-10-14 20:34:28 -04:00
2026-09-30 18:12:38 -04:00
2026-09-26 01:08:45 -05:00
2026-05-13 01:34:19 -05:00
2026-10-04 12:19:41 -04:00
2026-10-15 16:49:23 -04:00
2026-10-21 06:47:06 -04:00
2026-10-12 19:46:58 -04:00
2026-10-17 08:09:30 -04:00
2026-10-22 15:59:54 -04:00
2026-10-13 07:50:42 -04:00
2026-09-30 06:10:27 -04:00
2026-09-30 06:10:27 -04:00
2026-10-20 00:04:50 -04:00
2026-10-20 00:05:29 -04:00
2026-10-19 22:45:48 -04:00
2026-08-01 15:28:54 -05:00
2026-10-22 12:33:06 -04:00
2026-08-15 12:48:27 -04:00
2026-10-19 18:16:10 -04:00
2026-09-20 17:56:43 -04:00
2026-10-14 07:47:29 -04:00
2026-10-11 21:47:27 -05:00
2026-09-08 19:40:01 -05:00
2026-08-26 23:04:29 -04:00
2026-10-20 08:38:21 -04:00
2026-10-17 20:39:50 -04:00
2026-10-14 17:32:55 -05:00
2026-10-22 07:13:03 -04:00
2026-10-21 07:07:39 -04:00
2026-09-10 16:34:41 -04:00
2026-09-10 16:34:41 -04:00
2026-09-10 16:34:41 -04:00
2026-10-21 10:11:10 -04:00
2026-10-21 18:37:12 -05:00
2026-10-16 14:01:24 -04:00
2026-09-21 14:11:16 -04:00
2026-10-20 07:27:05 -04:00
2026-05-21 18:20:09 -05:00
2026-10-04 18:19:43 -04:00
2026-09-01 14:47:33 -04:00
2026-09-17 09:16:20 -04:00
2026-10-07 23:47:52 -04:00