mirror of
https://github.com/bykof/cordova-plugin-webserver.git
synced 2026-04-20 00:02:45 +08:00
Both should return a text and not a json object to make it dynamicly
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
func requestToRequestDict(requestUUID: String, request: GCDWebServerDataRequest) -> Dictionary<String, Any> {
|
||||
return [
|
||||
"requestId": requestUUID,
|
||||
"body": request.jsonObject ?? "",
|
||||
"body": request.text ?? "",
|
||||
"headers": request.headers,
|
||||
"method": request.method,
|
||||
"path": request.url.path,
|
||||
|
||||
Reference in New Issue
Block a user