-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Default context #8502
Default context #8502
Conversation
function checkHttpResponse(port, path, callback) { | ||
http.get({port, path}, function(r) { | ||
let response = ''; | ||
r. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call r.setEncoding('utf8')
first if you want string data in the data event listener. (And maybe rename the variable to res
for clarity.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change belongs to #8429 - I updated that PR
LGTM with a comment. Can you lowercase the status lines of the commit logs? |
Updated the status lines. Thanks for the review! |
I updated the CL, should now pass the test on Windows. |
CI after rebase: https://ci.nodejs.org/job/node-test-pull-request/4160/. |
Landed as efe4d19. |
Fixes: nodejs#8426 PR-URL: nodejs#8502 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
This change touches only the inspector integration.
Description of change
Inspector now returns a proper context when the default context is requested. This makes it possible to omit context ID from some requests.
Note that this PR is built on top of another PR (#8429) and adds a new test. I will roll the test change into that PR if this one is greenlighted first.
CC: @ofrobots