astro-fastify
astro-fastify copied to clipboard
bugfix: socket + post with data
Hi!
Found 2 problems:
- making POST requests to pages with data (in any non empty format) doesn't return.
- When using the @fastify/websocket, the vite websocket runs partially on fastify.
Fixed them.
However: With these changes.,only the requests that were explicit towards fastify will be caught, unlike the previous version where all was caught.
Upside: I believe this is slightly faster then the previous algorithm, because we are dividing only for relevancy.
@matthewp It doesn't support all the ways to encode information, but it is a nice start. Waiting on you mate :)
I need this fix for a project that I am working on, just to add an additional data-point. These changes work for my situation.
I need this fix for a project that I am working on, just to add an additional data-point. These changes work for my situation.
for the mean while: @tdnordine
pnpm i AceCodePt/astro-fastify#bugfix/websocket-post-data