Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: API returns invalid file URLs, due to including the port (#2223)
  • Loading branch information
BalduinLandolt committed Sep 29, 2022
1 parent 73ef8b9 commit 1a0b09c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions webapi/src/main/scala/org/knora/webapi/config/AppConfig.scala
Expand Up @@ -134,12 +134,10 @@ final case class Sipi(
audioMimeTypes: List[String],
archiveMimeTypes: List[String]
) {
val internalBaseUrl: String = "http://" + internalHost + (if (internalPort != 80)
":" + internalPort
else "")
val externalBaseUrl: String = "http://" + externalHost + (if (externalPort != 80)
":" + externalPort
else "")
val internalBaseUrl: String =
internalProtocol + "://" + internalHost + (if (internalPort != 80) ":" + internalPort else "")
val externalBaseUrl: String =
externalProtocol + "://" + externalHost + (if (externalPort != 80) ":" + externalPort else "")
val timeoutInSeconds: duration.Duration = scala.concurrent.duration.Duration(timeout)

}
Expand Down

0 comments on commit 1a0b09c

Please sign in to comment.