milkio 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,7 +156,7 @@ export function defineHttpHandler(app: MilkioApp, options: ExecuteHttpServerOpti
|
|
|
156
156
|
}
|
|
157
157
|
await MiddlewareEvent.handle("beforeHTTPResponse", [middlewareResponse, detail])
|
|
158
158
|
|
|
159
|
-
response.body = middlewareResponse.value
|
|
159
|
+
if (!response.body) response.body = middlewareResponse.value
|
|
160
160
|
} catch (error) {
|
|
161
161
|
const result = hanldeCatchError(error, executeId)
|
|
162
162
|
if (!response.body) response.body = TSON.stringify(result)
|