Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replyWithFile does not supply content-type header #689

Closed
stevenvachon opened this issue Sep 17, 2016 · 2 comments
Closed

replyWithFile does not supply content-type header #689

stevenvachon opened this issue Sep 17, 2016 · 2 comments
Labels

Comments

@stevenvachon
Copy link

stevenvachon commented Sep 17, 2016

nock("http://test")
  .get("/normal/no-links.html")
  .replyWithFile(200, fixture.path("/normal/no-links.html"));

The content-type header is undefined, but the response is a stream, so it is working.

For now, I've returned my own read-stream with custom headers.

@stevenvachon stevenvachon changed the title mime types? replyWithFile does not supply content-type header Sep 18, 2016
@stale
Copy link

stale bot commented Sep 17, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions.

@stale stale bot added the stale label Sep 17, 2018
@stale stale bot closed this as completed Sep 24, 2018
@lock
Copy link

lock bot commented Oct 8, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Oct 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant