Alphanumeric enforcement on HeaderName
breaks Implementation with Memphis.
#1030
Labels
bug
Confirmed reproducible bug
HeaderName
breaks Implementation with Memphis.
#1030
As stated above the Alphanumeric enforcement introduced in 0.30.0 breaks custom headers used by memphis.
nats.rs/async-nats/src/header.rs
Lines 502 to 504 in cb0e15a
Memphis uses Nats in the background and uses SpecialHeaders like
$memphis_producedBy
which inclue$
,_
and therefor triggering theParseHeaderNameError
It also appears that the enforcement dosn't happen while inserting into the HeaderMap but rather when reading it at
nats.rs/async-nats/src/connection.rs
Line 295 in cb0e15a
Causing the entire library to panic rather than returning an error.
But I don't understand why the headers are being restricted in the first place, as something like the headers above work absolutly fine, and I didn't find anything in the NATS documentation restricting the use of headers like that. I think if a user wants to use funky HeaderNames just let them do it.
The text was updated successfully, but these errors were encountered: