mbrevoort / node-reggie

An experimental light weight alternative to a full blown npm registry
416 stars 50 forks source link

response.send used incorrectly #30

Closed paolodm closed 11 years ago

paolodm commented 11 years ago

Reggie uses Restify's response.send() incorrectly. It should be status code then body, i.e.

res.send(500, err)

Currently, reggie does it the other way: res.send(err, 500)

bajtos commented 11 years ago

Fixed.