We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1814bf commit 9035efaCopy full SHA for 9035efa
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "strontium",
3
- "version": "2.4.4",
+ "version": "2.4.5",
4
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
5
"main": "lib/src/index.js",
6
"types": "lib/src/index.d.ts",
src/http/drivers/FastifyServer.ts
@@ -209,6 +209,12 @@ export class FastifyServer implements Process {
209
rawResponse
210
)
211
212
+ // Handle an edge case in Fastify that doesn't allow async/await undefined returns
213
+ if (validatedOutput === undefined) {
214
+ return response.send()
215
+ }
216
+
217
218
return validatedOutput
219
} catch (e) {
220
// Handle errors in the output validation.
0 commit comments