todos fixed

This commit is contained in:
Dennis Eichhorn 2023-10-12 22:49:21 +00:00
parent 9adb343cf5
commit 4e1f1a5e09

View File

@ -79,7 +79,7 @@ export class Request
case RequestType.FORM_DATA: case RequestType.FORM_DATA:
return 'multipart/form-data'; return 'multipart/form-data';
default: default:
return 'text/plain'; return '*/*';
} }
}; };
@ -262,13 +262,6 @@ export class Request
{ {
this.type = type; this.type = type;
this.requestHeader['Content-Type'] = this.setContentTypeBasedOnType(this.type); this.requestHeader['Content-Type'] = this.setContentTypeBasedOnType(this.type);
/*
@todo: why was i doing this?
if (this.type === RequestType.FORM_DATA) {
delete this.requestHeader['Content-Type'];
}
*/
}; };
/** /**