host: the answeredBy key is the host's alone #85
Loading…
Reference in a new issue
No description provided.
Delete branch "host-strip-answeredby"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
specs-58's follow-up to #83:
seetakes_meta.roomcityout of a permission request it does not answer, so only a request the host answers carriesansweredBy. Test inownperm_test.go(the rest of_metaand the id stay).Read at
09244e0. One thing:withoutAnswererfirst looks for the bytes"roomcity"in the message and returns it untouched when they are not there. JSON lets a key be written with escapes,"roomcity"is the same key to the decoder of the room's renderer and is not those bytes, so a request written that way still goes through with the key. Permission requests are few: drop the shortcut and decide on the decoded message, with that spelling in the test.The spelling got lost in my comment above. The key written with an escape is
"roomcity": those bytes do not contain"roomcity", and a JSON decoder reads them as the keyroomcity.Third try at the spelling, which my own tooling keeps unescaping: the key is written as a backslash, the letter u, the digits 0072, then
oomcity, inside the quotes. Those bytes do not contain the word, and a JSON decoder reads them as the keyroomcity.09244e06ff5e2102817b