Skip to content

Commit

Permalink
Renamed ensureHeaderCorrectlyCased to getHeaderNameCorrectlyCased. (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Dec 21, 2017
1 parent 9a1c2ef commit 0d91203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/security/SecurityUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ private static byte[] getResponseBytes(int responseCode, byte[] responseBodyByte
}

responseHeaders[i] = new BasicHeader(
ensureHeaderCorrectlyCased(responseHeaders[i].getName()),
getHeaderNameCorrectlyCased(responseHeaders[i].getName()),
responseHeaders[i].getValue()
);
}
Expand All @@ -521,7 +521,7 @@ private static byte[] getResponseBytes(int responseCode, byte[] responseBodyByte
return outputStream.toByteArray();
}

private static String ensureHeaderCorrectlyCased(String headerName) {
private static String getHeaderNameCorrectlyCased(String headerName) {
headerName = headerName.toLowerCase();
headerName = headerName.substring(SUBSTRING_BEGIN_INDEX, SUBSTRING_END_INDEX).toUpperCase()
+ headerName.substring(SUBSTRING_END_INDEX);
Expand Down

0 comments on commit 0d91203

Please sign in to comment.