mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-08 02:30:36 +08:00
fix bug
This commit is contained in:
parent
ba1b964e24
commit
444e784e70
@ -25,7 +25,7 @@ object HttpRequest {
|
|||||||
Charsets.UTF_8
|
Charsets.UTF_8
|
||||||
} else {
|
} else {
|
||||||
val startIndex = contentType.indexOf("charset=", ignoreCase = true) + 8
|
val startIndex = contentType.indexOf("charset=", ignoreCase = true) + 8
|
||||||
if (startIndex < 0) {
|
if (startIndex < 8) {
|
||||||
Charsets.UTF_8
|
Charsets.UTF_8
|
||||||
} else {
|
} else {
|
||||||
var endIndex = contentType.indexOf(";", startIndex = startIndex, ignoreCase = true)
|
var endIndex = contentType.indexOf(";", startIndex = startIndex, ignoreCase = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user