xmidt-org / wrp-go

go implementation of the Web Routing Protocol
Apache License 2.0
4 stars 7 forks source link

Make the header use consistent. #118

Closed schmidtw closed 1 year ago

schmidtw commented 1 year ago

The library specifies two prefixes that define headers:

Presently the library consistently outputs with the prefix X-Xmidt-.

This is confusing and error prone, so we want to change the library to accept either prefix form (X-Xmidt- and X-Midt-) and always output X-Xmidt-.

The exported constants for the headers will also only be of the prefix form X-Xmidt- to reduce confusion as well.

This preserves backwards compatibility.