mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 16:57:07 +08:00
format
This commit is contained in:
@ -105,7 +105,8 @@ print(data.decode("utf-8"))
|
||||
var headers = requestModel.enabledHeadersMap;
|
||||
if (headers.isNotEmpty || hasBody) {
|
||||
hasHeaders = true;
|
||||
bool hasContentTypeHeader = headers.keys.any((k) => k.toLowerCase() == HttpHeaders.contentTypeHeader);
|
||||
bool hasContentTypeHeader = headers.keys
|
||||
.any((k) => k.toLowerCase() == HttpHeaders.contentTypeHeader);
|
||||
|
||||
if (hasBody && !hasContentTypeHeader) {
|
||||
headers[HttpHeaders.contentTypeHeader] =
|
||||
|
Reference in New Issue
Block a user