Skip to content

Commit

Permalink
fix: 更改createRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Nov 12, 2024
1 parent 9d4d3ee commit 62002f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/com/muedsa/tvbox/tool/HttpTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ fun Connection.feignChrome(referrer: String? = null, cookieStore: CookieStore? =
.header("Connection", "close")
}

fun Jsoup.createRequest(url: String): Request.Builder =
Request.Builder().url(url)
fun String.createRequest(): Request.Builder =
Request.Builder().url(this)

fun Request.Builder.feignChrome(referer: String? = null) =
header("User-Agent", ChromeUserAgent)
Expand Down

0 comments on commit 62002f5

Please sign in to comment.