mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
todos fixed
This commit is contained in:
parent
9adb343cf5
commit
4e1f1a5e09
|
|
@ -79,7 +79,7 @@ export class Request
|
|||
case RequestType.FORM_DATA:
|
||||
return 'multipart/form-data';
|
||||
default:
|
||||
return 'text/plain';
|
||||
return '*/*';
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -262,13 +262,6 @@ export class Request
|
|||
{
|
||||
this.type = 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'];
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user