wiki-server 0.24.1 → 0.24.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.
package/lib/server.coffee CHANGED
@@ -188,9 +188,8 @@ module.exports = exports = (argv) ->
188
188
 
189
189
  # use logger, at least in development, probably needs a param to configure (or turn off).
190
190
  # use stream to direct to somewhere other than stdout.
191
- wikiName = new URL(argv.url).hostname
192
- logger.token('vhost', () ->
193
- return wikiName)
191
+ logger.token('vhost', (req, res) ->
192
+ return req.hostname)
194
193
  app.use(logger(':vhost :method :url :status :res[content-length] - :response-time ms'))
195
194
  app.use(cookieParser())
196
195
  app.use(bodyParser.json({ limit: argv.uploadLimit}))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wiki-server",
3
3
  "description": "A Federated Wiki Server",
4
- "version": "0.24.1",
4
+ "version": "0.24.3",
5
5
  "author": {
6
6
  "name": "Ward Cunningham",
7
7
  "email": "ward@c2.com",