mirror of
https://github.com/tursom/TursomServer.git
synced 2025-03-24 16:40:05 +08:00
fix bug
This commit is contained in:
parent
8b96411067
commit
512c523cad
@ -29,7 +29,7 @@ object HttpRequest {
|
||||
Charsets.UTF_8
|
||||
} else {
|
||||
var endIndex = contentType.indexOf("charset=", startIndex = startIndex, ignoreCase = true) + 8
|
||||
if (endIndex < 0) endIndex = contentType.length
|
||||
if (endIndex < 8) endIndex = contentType.length
|
||||
if (startIndex == endIndex) {
|
||||
Charsets.UTF_8
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user