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

A few minor fixes: #1591

Merged
merged 1 commit into from May 23, 2015
Merged

A few minor fixes: #1591

merged 1 commit into from May 23, 2015

Conversation

simov
Copy link
Member

@simov simov commented May 20, 2015

  • Moved removeRefererHeader to the appropriate section of the options docs
  • Pass options to the redirect's module onRequest method, as it makes it more obvious from where these options are coming from (the extending of the request object in the ctor is a bit unexpected to say the least)
  • Attached the debug function to the request's prototype to make it accessible to the modules through the request instance

    This also fixes the request.debug call in the har module, which obviously is not covered by the tests atm, or rather it should be obvious if coveralls was actually working ..

- Moved `removeRefererHeader` to the appropriate section of the options docs
- Pass `options` to the redirect's module `onRequest` method, as it makes it more obvious from where these options are coming from (the extending of the request object in the ctor is a bit unexpected to say the least)
- Attached the `debug` function to the request's prototype to make it accessible to the modules through the request instance
simov added a commit that referenced this pull request May 23, 2015
@simov simov merged commit f2451bf into request:master May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant