Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Copy options before adding callback. #429
Prevents a reference to the callback function being added to the original options object.
I discovered this by making a request with a callback, then reusing the options object I made the request with to make a streaming request, which called the callback a second time.