Merge pull request #19219 from ktoso/wip-sslconfig-ktoso
Apply ssl-config and include hostname validation
This commit is contained in:
commit
59a079d1f2
12 changed files with 189 additions and 47 deletions
|
|
@ -5,7 +5,6 @@
|
|||
package akka.http.scaladsl.server.directives
|
||||
|
||||
import java.io.{ FileInputStream, File }
|
||||
import java.nio.charset.StandardCharsets
|
||||
import akka.http.scaladsl.model._
|
||||
import akka.http.scaladsl.server.{ MissingFormFieldRejection, RoutingSpec }
|
||||
import akka.util.ByteString
|
||||
|
|
@ -145,7 +144,7 @@ class FileUploadDirectivesSpec extends RoutingSpec {
|
|||
try {
|
||||
val buffer = new Array[Byte](1024)
|
||||
in.read(buffer)
|
||||
new String(buffer, StandardCharsets.UTF_8)
|
||||
new String(buffer, "UTF-8")
|
||||
} finally {
|
||||
in.close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue