mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-10 17:18:47 +00:00
Navitia: Only set "Authorization" HTTP header when required.
This commit is contained in:
parent
57eb4364b5
commit
ac3d55cc21
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
|
|||
{
|
||||
super(network);
|
||||
|
||||
httpClient.setHeader("Authorization", authorization);
|
||||
if (authorization != null)
|
||||
httpClient.setHeader("Authorization", authorization);
|
||||
}
|
||||
|
||||
protected abstract String region();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue