@ruiapp/rapid-core 0.8.0 → 0.8.1
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.
- package/dist/index.js +2 -1
- package/package.json +1 -1
- package/src/core/response.ts +1 -1
- package/src/core/routesBuilder.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -965,6 +965,7 @@ async function buildRoutes(server, applicationConfig) {
|
|
|
965
965
|
url: request.url.toString(),
|
|
966
966
|
input,
|
|
967
967
|
});
|
|
968
|
+
routerContext.response.status = 200;
|
|
968
969
|
let handlerContext = {
|
|
969
970
|
logger,
|
|
970
971
|
routerContext,
|
|
@@ -1050,7 +1051,7 @@ class RapidResponse {
|
|
|
1050
1051
|
getResponse() {
|
|
1051
1052
|
if (!this.#response) {
|
|
1052
1053
|
this.#response = new Response(this.body, {
|
|
1053
|
-
status: this.status ||
|
|
1054
|
+
status: this.status || 200,
|
|
1054
1055
|
headers: this.headers,
|
|
1055
1056
|
});
|
|
1056
1057
|
}
|
package/package.json
CHANGED
package/src/core/response.ts
CHANGED