gstroup / apimocker

node.js module to run a simple http server for mock service responses.
MIT License
280 stars 81 forks source link

Fixed an issue causing httpStatus to be ignored #69

Closed aleofreddi closed 7 years ago

aleofreddi commented 7 years ago

When the configuration does not provide a contentType, apimocker will sendfile without caring if the file is there or not ignoring the httpStatus parameter.

gstroup commented 7 years ago

Looks good! Would be nice to have a test though. If you could add one that would be great. If not I'll add one and merge this in. Thank you for submitting this fix.