Skip to content

Commit

Permalink
Remove colon from Basic scheme in generated HTTP Authorization header…
Browse files Browse the repository at this point in the history
…, per RFC 7617.
  • Loading branch information
msqr authored and azolotko committed Oct 8, 2020
1 parent 1712fed commit d8f42f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait SimpleClientWebSocketComponent extends WebSocketComponent {
private val actualUri = uriWithChargerId(uri, chargerId)

private val headers: java.util.Map[String, String] =
authPassword.map(password => authHeader -> s"Basic: ${toBase64String(chargerId, password)}")
authPassword.map(password => authHeader -> s"Basic ${toBase64String(chargerId, password)}")
.toMap.asJava

import org.java_websocket.client.WebSocketClient
Expand Down

0 comments on commit d8f42f6

Please sign in to comment.