mirror of https://github.com/usbharu/Hideout.git
Update src/main/kotlin/dev/usbharu/hideout/config/JsonOrFormModelMethodProcessor.kt
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
86626a6046
commit
cb72ac747f
|
@ -25,7 +25,6 @@ class JsonOrFormModelMethodProcessor(
|
||||||
webRequest: NativeWebRequest,
|
webRequest: NativeWebRequest,
|
||||||
binderFactory: WebDataBinderFactory?
|
binderFactory: WebDataBinderFactory?
|
||||||
): Any? {
|
): Any? {
|
||||||
|
|
||||||
val contentType = webRequest.getHeader("Content-Type").orEmpty()
|
val contentType = webRequest.getHeader("Content-Type").orEmpty()
|
||||||
logger.trace("ContentType is {}", contentType)
|
logger.trace("ContentType is {}", contentType)
|
||||||
if (contentType.contains(isJsonRegex)) {
|
if (contentType.contains(isJsonRegex)) {
|
||||||
|
|
Loading…
Reference in New Issue