minimalistic-server 0.0.43 → 0.0.44
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/index.mjs +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -708,7 +708,7 @@ const mimeTypes = {
|
|
|
708
708
|
"xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
709
709
|
"xltm": "application/vnd.ms-excel.template.macroenabled.12",
|
|
710
710
|
"xltx": "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
|
|
711
|
-
"xml": "application/
|
|
711
|
+
"xml": "application/xml",
|
|
712
712
|
"xo": "application/vnd.olpc-sugar",
|
|
713
713
|
"xop": "application/xop+xml",
|
|
714
714
|
"xpi": "application/x-xpinstall",
|
|
@@ -815,6 +815,10 @@ export class Request {
|
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
+
isAlive() {
|
|
819
|
+
return this.#request.socket.closed || this.#request.socket.destroyed;
|
|
820
|
+
}
|
|
821
|
+
|
|
818
822
|
getMethod() {
|
|
819
823
|
return this.#method;
|
|
820
824
|
}
|