When the configuration does not provide a contentType, apimocker will sendfile without caring if the file is there or not ignoring the httpStatus parameter.
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.
When the configuration does not provide a contentType, apimocker will
sendfile
without caring if the file is there or not ignoring thehttpStatus
parameter.