Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

refactor($http): avoid using closure vars in serverRequest fn #10361

Conversation

pkozlowski-opensource
Copy link
Member

The serverRequest function was accessing the headers var defined in a closure and "reusing" it as a local variable thus making the closure scope bigger and using the same name for 2 different purposes. Hopefully this version of the code is easier to follow.

@googlebot
Copy link

CLAs look good, thanks!

@lgalfaso
Copy link
Contributor

lgalfaso commented Dec 8, 2014

LGTM

@lgalfaso lgalfaso added this to the 1.3.7 milestone Dec 8, 2014
@caitp caitp modified the milestones: 1.3.7, 1.3.8 Dec 9, 2014
@pkozlowski-opensource pkozlowski-opensource modified the milestones: 1.3.8, 1.3.7 Dec 9, 2014
@pkozlowski-opensource pkozlowski-opensource deleted the refactor_http_check branch December 9, 2014 18:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants