-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
get_mut doesn't seem to work #821
Comments
I guess the mixture of raw and non-raw methods is breaking it, but I'm not sure. Does set_raw create two copies of the thing -- one typed, one untyped? |
I guess the issue is that typed_mut doesn't remove the header from the raw headers when inserting a typed one. |
Ah, this is a bug. The invariants I've been enforcing are: if you get an immutable view (raw or typed), and it doesn't exist, it will generate it and then give it to you (either serializing a typed, or parsing a raw). However, if you get a mutable reference, because you can cause them to be out of sync, it should obliterate the other stored value. So, |
…eader If you get a mutable reference to a typed header it is possible to make the two representations be out of sync. To avoid this, after parsing the raw part it should be removed. Fixes hyperium#821.
… header If you get a mutable reference to a typed header it is possible to make the two representations be out of sync. To avoid this, after parsing the raw part it should be removed. Fixes hyperium#821.
… header If you get a mutable reference to a typed header it is possible to make the two representations be out of sync. To avoid this, after parsing the raw part it should be removed. Fixes #821.
… header If you get a mutable reference to a typed header it is possible to make the two representations be out of sync. To avoid this, after parsing the raw part it should be removed. Fixes #821.
I'm not sure what happened here:
The text was updated successfully, but these errors were encountered: