WDYT about stringifying as late as possible here:

```scala
val absolute = if (uri.isAbsolute) {
  uri.withPort(uri.effectivePort)
} else {
  val apiPort = WhiskProperties.getEdgeHostApiPort
  val protocol = if (apiPort == 443) "https" else "http"
  Uri.from(scheme = protocol, host = host, port = apiPort)
}

absolute.toString
```

Very minor, but it prevents manual concatenations.

[ Full content available at: 
https://github.com/apache/incubator-openwhisk/pull/4004 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to