Skip to content

Commit

Permalink
Fix buildUrl not applying built URL to the request in WebRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed May 12, 2024
1 parent d90a8e1 commit f3bb540
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/reco1l/framework/net/WebRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ open class WebRequest(private var url: HttpUrl) : AutoCloseable {
fun buildUrl(block: HttpUrl.Builder.() -> Unit) {

url = url.newBuilder().apply(block).build()

// Rebuild the request to apply the URL change.
buildRequest {
url(url)
}
}


Expand Down

0 comments on commit f3bb540

Please sign in to comment.