You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
In the UriBeacon HTTP URL encoding chapter (specification/AdvertisingMode.md) it is described how the bytes listed in the table are expanded to their respective expansion texts. It is however not described how a given URL should be shortened. For example:
can be shortened to: <0x02> u1hr8 <0x0B> ub <0x01> t23.
The current implementation actually does this, but the spec could easily be read to just shorten the domain extension, like so:
<0x02> u1hr8.infoub <0x01> t23 which would be wasteful in the sense that it uses 4 more bytes than the first version. It might be better to describe the shortening process in more detail to make sure other implementations follow the reference implementation.
Thanks !
The text was updated successfully, but these errors were encountered:
In the UriBeacon HTTP URL encoding chapter (specification/AdvertisingMode.md) it is described how the bytes listed in the table are expanded to their respective expansion texts. It is however not described how a given URL should be shortened. For example:
http://u1hr8.infoub.org/t23
can be shortened to: <0x02> u1hr8 <0x0B> ub <0x01> t23.
The current implementation actually does this, but the spec could easily be read to just shorten the domain extension, like so:
<0x02> u1hr8.infoub <0x01> t23 which would be wasteful in the sense that it uses 4 more bytes than the first version. It might be better to describe the shortening process in more detail to make sure other implementations follow the reference implementation.
Thanks !
The text was updated successfully, but these errors were encountered: