A couple of fixes for BeaconDB
Hello!
This MR has a couple of fixes for compatibility with BeaconDB:
- For both the geolocate and submit, the query includes the SSID so that BeaconDB can process it (this is also in line with the ichnaea https://ichnaea.readthedocs.io/en/latest/api/geolocate.html and https://ichnaea.readthedocs.io/en/latest/api/geosubmit2.html )
- This replaces rather than appends the
User-Agent
Heading. For some reason you have to replace it, not append it to change the user agent (I had to do the same thing with mmsd-tng with replace: https://gitlab.com/kop316/mmsd/-/blob/master/src/service.c?ref_type=heads#L3884 )
I tested this successfully with BeaconDB and confirmed it worked with @joelkoen .