herlanS_ пре 3 година
родитељ
комит
4129bd7330
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/BridgeFIlter.kt

+ 2 - 1
src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/BridgeFIlter.kt

@@ -81,7 +81,8 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad
                     val rb = RequestBuilder(reqId, toPath, HttpMethod.valueOf(req.method), headerMap.toMutableMap())
 
                     rb.queryString = req.queryString
-                    if (req.contentType != null && req.contentType.toLowerCase().contains("multipart/form-data")) {
+
+                    if (req.contentType?.toLowerCase()?.contains("multipart/form-data") == true) {
                         rb.parts =
                             req.parts.map {
                                 val subFilename = if (it.submittedFileName == null) {