mirror of
https://github.com/foss42/apidash.git
synced 2025-12-16 02:44:08 +08:00
Update ContentType & ResponseBodyView enums
This commit is contained in:
@@ -121,7 +121,7 @@ Map<String, dynamic> requestModelToHARJsonRequest(
|
||||
hasBody = true;
|
||||
json["postData"] = {};
|
||||
json["postData"]["mimeType"] =
|
||||
kContentTypeMap[requestModel.requestBodyContentType] ?? "";
|
||||
requestModel.requestBodyContentType.header;
|
||||
json["postData"]["text"] = requestBody;
|
||||
if (exportMode) {
|
||||
json["postData"]["comment"] = "";
|
||||
@@ -139,7 +139,7 @@ Map<String, dynamic> requestModelToHARJsonRequest(
|
||||
if (hasBody && !requestModel.hasContentTypeHeader) {
|
||||
var m = {
|
||||
"name": "Content-Type",
|
||||
"value": kContentTypeMap[requestModel.requestBodyContentType] ?? ""
|
||||
"value": requestModel.requestBodyContentType.header
|
||||
};
|
||||
if (exportMode) {
|
||||
m["comment"] = "";
|
||||
|
||||
Reference in New Issue
Block a user