Commit da516d7
committed
Add referer header to Nominatim requests
Per the [Nominatim usage policy][1], all requests should have an
identifying Referer or User-Agent header (quoted below). Using the host
name, as we already do for Mapbox requests, should be sufficient to
satisfy the requirement while avoiding the need for additional settings.
> Provide a valid HTTP Referer or User-Agent identifying the
> application (stock User-Agents as set by http libraries will not do).
[1]: https://operations.osmfoundation.org/policies/nominatim/1 parent ff88b55 commit da516d7
1 file changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
800 | 808 | | |
801 | 809 | | |
802 | 810 | | |
| |||
883 | 891 | | |
884 | 892 | | |
885 | 893 | | |
886 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
887 | 903 | | |
888 | 904 | | |
889 | 905 | | |
| |||
0 commit comments