-
Notifications
You must be signed in to change notification settings - Fork 2k
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
https #482
https #482
Conversation
Removed logic from createProxyServer and put it into setupOutgoing. Conflicts: lib/caronte.js
updated existing example with log output
hey, thanks for the PR i'm okay with the idea of allowing overridable headers, not so much about the agent.. as you might have noticed we disabled it by default and i don't see why would someone want to specify a different agent for each connection (if you can bring a valid usecase i'd be happy to reconsider my position :D ) the philosophy behind caronte is to keep everything as lean and simple as possible.. overloading last thing.. i don't want to sound too picky but i think that keeping a consistent style is important.. please use |
@yawnt thanks for the review. I opened this PR as a discussion. I am happy to follow your As for the use case, my goal was to make the options object consistent between the global Let me know if you think this it is the right direction and I will modify and add tests. |
i see what you mean.. i think the global options should be used for things that are not subject to changes often.. how about we settle for removing if we do this you can then specify a global about the tests please look at the way |
when you feel like it's done give me a shout and i will review :) .. lookin good so far.. only thing i'd change is.. in README.md instead of [0] and [1] write the actual links |
@yawnt I think it is good to go. If you have any other tests in mind let me know.
@yawnt let me know what you need to pull this in. |
👍 perfect :) |
argh, i just saw you mentioned me in a commit about this being done.. i don't remember seeing it.. i apologize for the late response :( |
caronte.createProxyServer
tocommon.setupOutgoing
headers
to options. Can now overwrite headers (see https.js example 2)Also you will notice that the third option raises an error and exits the node interpreter. I am not sure where this error is coming from or where it can be caught.