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