koa-classic-server 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = function koaClassicServer(
30
30
  const options = opts || {};
31
31
  options.template = opts.template || {template:{}};// necessario per rendere possibili i controlli di typo su options.template.render ecc
32
32
 
33
- options.method = typeof options.method == 'string' ? options.method : Array('GET');// metod
33
+ options.method = Array.isArray( options.method ) ? options.method : Array('GET');// metod
34
34
  options.showDirContents = typeof options.showDirContents == 'boolean' ? options.showDirContents : true;// di default le cartelle vengono mostrate
35
35
  options.index = typeof options.index == 'string' ? options.index : "";// index filefile che viene caricato se trovato dentro la cartella
36
36
  options.urlPrefix = typeof options.urlPrefix == 'string' ? options.urlPrefix : "";// urlPrefix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koa-classic-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "a server in style Apache 2",
5
5
  "main": "index.js",
6
6
  "scripts": {