Открыть боковую панель
Aurora OS
Kotlin Multiplatform
Libraries
ktor
Коммиты
7033c04d
Коммит
7033c04d
создал
Май 17, 2022
по автору
leonid.stashevsky
Зафиксировано автором
Leonid Stashevsky
Май 18, 2022
Просмотр файлов
Fix codestyle
владелец
785027bb
Изменения
5
Скрыть пробелы
Построчно
Рядом
buildSrc/src/main/kotlin/Codestyle.kt
Просмотр файла @
7033c04d
...
@@ -10,11 +10,10 @@ fun Project.configureCodestyle() {
...
@@ -10,11 +10,10 @@ fun Project.configureCodestyle() {
kotlinter
.
apply
{
kotlinter
.
apply
{
ignoreFailures
=
true
ignoreFailures
=
true
reporters
=
arrayOf
(
"checkstyle"
,
"plain"
)
reporters
=
arrayOf
(
"checkstyle"
,
"plain"
)
experimentalRules
=
tru
e
experimentalRules
=
fals
e
disabledRules
=
arrayOf
(
disabledRules
=
arrayOf
(
"no-wildcard-imports"
,
"no-wildcard-imports"
,
"experimental:spacing-between-declarations-with-annotations"
,
"indent"
"experimental:enum-entry-name-case"
)
)
}
}
}
}
gradle/libs.versions.toml
Просмотр файла @
7033c04d
...
@@ -5,7 +5,7 @@ coroutines-version = "1.6.1"
...
@@ -5,7 +5,7 @@ coroutines-version = "1.6.1"
atomicfu-version
=
"0.17.1"
atomicfu-version
=
"0.17.1"
serialization-version
=
"1.3.2"
serialization-version
=
"1.3.2"
validator-version
=
"0.8.0"
validator-version
=
"0.8.0"
ktlint-version
=
"3.
6
.0"
ktlint-version
=
"3.
10
.0"
netty-version
=
"4.1.74.Final"
netty-version
=
"4.1.74.Final"
netty-tcnative-version
=
"2.0.45.Final"
netty-tcnative-version
=
"2.0.45.Final"
...
...
ktor-http/ktor-http-cio/common/src/io/ktor/http/cio/HttpParser.kt
Просмотр файла @
7033c04d
...
@@ -125,7 +125,6 @@ internal suspend fun parseHeaders(
...
@@ -125,7 +125,6 @@ internal suspend fun parseHeaders(
headers
.
put
(
nameHash
,
valueHash
,
nameStart
,
nameEnd
,
valueStart
,
valueEnd
)
headers
.
put
(
nameHash
,
valueHash
,
nameStart
,
nameEnd
,
valueStart
,
valueEnd
)
}
}
val
host
=
headers
[
HttpHeaders
.
Host
]
val
host
=
headers
[
HttpHeaders
.
Host
]
if
(
host
!=
null
)
{
if
(
host
!=
null
)
{
validateHostHeader
(
host
)
validateHostHeader
(
host
)
...
...
ktor-http/ktor-http-cio/common/test/io/ktor/tests/http/cio/RequestParserTest.kt
Просмотр файла @
7033c04d
...
@@ -57,7 +57,6 @@ class RequestParserTest {
...
@@ -57,7 +57,6 @@ class RequestParserTest {
"""
.
trimIndent
()
"""
.
trimIndent
()
assertFailsWith
<
ParserException
>
{
assertFailsWith
<
ParserException
>
{
parseRequest
(
ByteReadChannel
(
case
))
parseRequest
(
ByteReadChannel
(
case
))
}
}
...
...
ktor-utils/posix/test/io/ktor/util/MultiWorkerDispatcherTest.kt
Просмотр файла @
7033c04d
...
@@ -11,7 +11,8 @@ import kotlin.test.*
...
@@ -11,7 +11,8 @@ import kotlin.test.*
class
MultiWorkerDispatcherTest
{
class
MultiWorkerDispatcherTest
{
private
val
dispatcher
=
Dispatchers
.
createFixedThreadDispatcher
(
private
val
dispatcher
=
Dispatchers
.
createFixedThreadDispatcher
(
name
=
"CLIENT TEST DISPATCHER"
,
threads
=
4
name
=
"CLIENT TEST DISPATCHER"
,
threads
=
4
)
)
@Test
@Test
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать