mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 16:57:07 +08:00
Merge branch 'main' into form_data_imp
This commit is contained in:
@ -152,10 +152,7 @@ body = b'\r\n'.join(dataList)
|
||||
|
||||
if (headers.isNotEmpty || hasBody) {
|
||||
hasHeaders = true;
|
||||
bool hasContentTypeHeader = headers.keys
|
||||
.any((k) => k.toLowerCase() == HttpHeaders.contentTypeHeader);
|
||||
|
||||
if (hasBody && !hasContentTypeHeader) {
|
||||
if (hasBody && !requestModel.hasContentTypeHeader) {
|
||||
headers[HttpHeaders.contentTypeHeader] =
|
||||
kContentTypeMap[requestModel.requestBodyContentType] ?? "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user