mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
KVV: Fix request URL encoding.
This commit is contained in:
parent
3a9d317836
commit
d48b1e10aa
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2010-2015 the original author or authors.
|
* Copyright the original author or authors.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -24,6 +24,8 @@ import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
import com.google.common.base.Charsets;
|
||||||
|
|
||||||
import de.schildbach.pte.dto.Line;
|
import de.schildbach.pte.dto.Line;
|
||||||
import de.schildbach.pte.dto.Style;
|
import de.schildbach.pte.dto.Style;
|
||||||
import de.schildbach.pte.dto.Style.Shape;
|
import de.schildbach.pte.dto.Style.Shape;
|
||||||
|
@ -42,7 +44,7 @@ public class KvvProvider extends AbstractEfaProvider {
|
||||||
|
|
||||||
public KvvProvider(final HttpUrl apiBase) {
|
public KvvProvider(final HttpUrl apiBase) {
|
||||||
super(NetworkId.KVV, apiBase);
|
super(NetworkId.KVV, apiBase);
|
||||||
|
setRequestUrlEncoding(Charsets.UTF_8);
|
||||||
setStyles(STYLES);
|
setStyles(STYLES);
|
||||||
setSessionCookieName("HASESSIONID");
|
setSessionCookieName("HASESSIONID");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue