mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 16:38:37 +00:00
Parse request bodies as UTF8 instead of ASCII
This commit is contained in:
parent
d8c36923d9
commit
e1405c9de4
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public static partial class ControllerExtensions
|
||||||
$"contentLen={controller.Request.ContentLength}, readLen={bodyBytes.Length}",
|
$"contentLen={controller.Request.ContentLength}, readLen={bodyBytes.Length}",
|
||||||
LogArea.HTTP);
|
LogArea.HTTP);
|
||||||
}
|
}
|
||||||
return Encoding.ASCII.GetString(bodyBytes);
|
return Encoding.UTF8.GetString(bodyBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
[GeneratedRegex("&(?!(amp|apos|quot|lt|gt);)")]
|
[GeneratedRegex("&(?!(amp|apos|quot|lt|gt);)")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue