mirror of
https://github.com/foss42/apidash.git
synced 2025-06-27 11:02:33 +08:00
Update ContentType & ResponseBodyView enums
This commit is contained in:
@ -118,8 +118,7 @@ import okhttp3.MediaType.Companion.toMediaType""";
|
||||
var contentLength = utf8.encode(requestBody).length;
|
||||
if (contentLength > 0) {
|
||||
hasBody = true;
|
||||
String contentType =
|
||||
kContentTypeMap[requestModel.requestBodyContentType] ?? "";
|
||||
String contentType = requestModel.requestBodyContentType.header;
|
||||
var templateBody = jj.Template(kTemplateRequestBody);
|
||||
result += templateBody
|
||||
.render({"contentType": contentType, "body": requestBody});
|
||||
|
Reference in New Issue
Block a user