mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 08:39:50 +00:00
fixed usage of Java6 api
This commit is contained in:
parent
ffb1f1bbb8
commit
051ff66460
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ public final class ParserUtils
|
|||
|
||||
if (postRequest != null)
|
||||
{
|
||||
final byte[] postRequestBytes = postRequest.getBytes(encoding);
|
||||
final byte[] postRequestBytes = postRequest.getBytes(encoding.name());
|
||||
|
||||
connection.setRequestMethod("POST");
|
||||
connection.addRequestProperty("Content-Type", "application/x-www-form-urlencoded");
|
||||
|
@ -232,7 +232,7 @@ public final class ParserUtils
|
|||
|
||||
if (postRequest != null)
|
||||
{
|
||||
final byte[] postRequestBytes = postRequest.getBytes(requestEncoding);
|
||||
final byte[] postRequestBytes = postRequest.getBytes(requestEncoding.name());
|
||||
|
||||
connection.setRequestMethod("POST");
|
||||
connection.addRequestProperty("Content-Type", "application/x-www-form-urlencoded");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue