Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcollina/composer-multipart-bug
https://github.com/mcollina/composer-multipart-bug
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcollina/composer-multipart-bug
- Owner: mcollina
- Created: 2024-11-04T09:56:27.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T09:56:35.000Z (3 months ago)
- Last Synced: 2024-12-24T20:44:36.270Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multipart Bug
This is a Platformatic Runtime application that has a Composer and a Service,
named `composer` and `service`.`service` exposes a multipart route as `/upload`. `composer` exposes that route:
* via reverse proxy as `/proxy/upload`
* via OpenAPI composition as `/service/upload`.Currently the `OpenAPI` composition exposes this incorrectly and it remaps the type
from `multipart/form-data` to `application/json`.A failing client demonstrating this is available at `test.mjs`, to use:
1. `npm install`
2. `npm start`
3. `node test.mjs` (in another window)