Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Revert "Fix edu connection"
Browse files Browse the repository at this point in the history
This reverts commit 4f39537.
  • Loading branch information
qhy040404 committed Aug 27, 2023
1 parent cfed2a9 commit fe3360e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Requests {
return Constants.NET_DISCONNECTED
}
GlobalValues.netPrompt = Constants.STRING_NULL
var request = Request.Builder()
val request = Request.Builder()
.url(url)
.apply {
headers.forEach { (name, value) ->
Expand All @@ -66,7 +66,6 @@ object Requests {
try {
runBlocking(Dispatchers.IO) {
if (url.contains(EDU_HOST)) {
request = request.newBuilder().addHeader("Connection", "close").build()
delay(500L)
}
client.newCall(request).execute()
Expand Down Expand Up @@ -134,7 +133,7 @@ object Requests {
}
GlobalValues.netPrompt = Constants.STRING_NULL
val body = form.toRequestBody(mediaType)
var request = Request.Builder()
val request = Request.Builder()
.url(url)
.apply {
headers.forEach { (name, value) ->
Expand All @@ -146,7 +145,6 @@ object Requests {
try {
runBlocking(Dispatchers.IO) {
if (url.contains(EDU_HOST)) {
request = request.newBuilder().addHeader("Connection", "close").build()
delay(500L)
}
client.newCall(request).execute()
Expand Down

0 comments on commit fe3360e

Please sign in to comment.