mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-11 00:08:49 +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,6 +144,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
|
||||||
{
|
{
|
||||||
super(network);
|
super(network);
|
||||||
|
|
||||||
|
if (authorization != null)
|
||||||
httpClient.setHeader("Authorization", authorization);
|
httpClient.setHeader("Authorization", authorization);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue