diff options
Diffstat (limited to 'kvision-modules/kvision-remote')
-rw-r--r-- | kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt index 06dd1330..eb88ba8b 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt @@ -118,9 +118,10 @@ open class CallAgent { ): Promise<dynamic> { return Promise { resolve, reject -> jQuery.ajax(url, obj { - this.contentType = contentType + this.contentType = if (contentType != "multipart/form-data") contentType else false this.data = data this.method = method.name + this.processData = if (contentType != "multipart/form-data") undefined else false this.success = { data: dynamic, _: Any, _: Any -> resolve(data) |