Fix options not being passed to npm-http-server

`npm-http-server` expects options as a hash, but they were being passed as arguments. This did not affect npmcdn.com because the defaults were being used anyway, but I ran into it when setting it up internally at my company. #TrolledByMJ again
This commit is contained in:
Jason Miller 2016-03-15 13:40:32 -04:00
parent 28a96bbb66
commit babea5e02c
1 changed files with 4 additions and 4 deletions

View File

@ -10,10 +10,10 @@ const app = express()
app.disable('x-powered-by') app.disable('x-powered-by')
app.use(cors()) app.use(cors())
app.use(express.static('public', { maxAge: 60000 })) app.use(express.static('public', { maxAge: 60000 }))
app.use(createRequestHandler( app.use(createRequestHandler({
registryURL, registryURL: registryURL,
bowerBundle bowerBundle: bowerBundle
)) }))
app.listen(port, function () { app.listen(port, function () {
console.log('Server started on port %s, Ctrl+C to quit', port) console.log('Server started on port %s, Ctrl+C to quit', port)