|
@@ -6,7 +6,6 @@ import org.apache.logging.log4j.LogManager
|
|
|
import org.springframework.core.Ordered
|
|
|
import org.springframework.core.annotation.Order
|
|
|
import org.springframework.core.io.ResourceLoader
|
|
|
-import org.springframework.http.HttpHeaders
|
|
|
import org.springframework.http.HttpMethod
|
|
|
import org.springframework.http.HttpStatus
|
|
|
import org.springframework.messaging.simp.SimpMessagingTemplate
|
|
@@ -79,9 +78,9 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad
|
|
|
try {
|
|
|
val headerMap = req.headerNames.toList().associateBy({ it }, { req.getHeader(it) })
|
|
|
val rb = RequestBuilder(reqId, toPath, HttpMethod.valueOf(req.method), headerMap.toMutableMap())
|
|
|
-
|
|
|
rb.queryString = req.queryString
|
|
|
- if (req.contentType != null && req.contentType.toLowerCase().indexOf("multipart/form-data") > -1) {
|
|
|
+ AppLog.write(this.javaClass).info("content type = " + req.contentType)
|
|
|
+ if (req.contentType?.toLowerCase()?.contains("multipart/form-data") == true) {
|
|
|
rb.parts =
|
|
|
req.parts.map {
|
|
|
val subFilename = if (it.submittedFileName == null) {
|