Navitia: Only set "Authorization" HTTP header when required.

This commit is contained in:
Torsten Grote 2016-01-30 11:59:55 -02:00 committed by Andreas Schildbach
parent 57eb4364b5
commit ac3d55cc21

View file

@ -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);
} }