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

chore($http): Use copy to prevent modification of cached data #5276

Closed
wants to merge 1 commit into from

Conversation

kseamon
Copy link
Contributor

@kseamon kseamon commented Dec 4, 2013

chore($http): Use copy to prevent modification of cached data

Copy response data as it goes into and out of the cache.
This prevents modifications to cached data.

Copy response data as it goes into and out of the cache.
This prevents modifications to cached data.
@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@petebacondarwin
Copy link
Contributor

@kseamon - thanks for this PR. It makes a lot of sense. We will need you to sign the CLA and also we will need a unit test or two to demonstrate the feature before we can merge it.

@IgorMinar
Copy link
Contributor

@petebacondarwin, karl is from google, working on DFA == no cla needed :)

@IgorMinar
Copy link
Contributor

+1 for adding tests

@kseamon
Copy link
Contributor Author

kseamon commented Dec 5, 2013

Actually, now that I look more closely at this to test it, I realize it is not needed. Everything going into that cache is a string, so copying does nothing.

@kseamon kseamon closed this Dec 5, 2013
@IgorMinar
Copy link
Contributor

@kseamon I like how tests can better focus our thinking and reveal things that were not obvious before :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants