mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-15 00:38:42 +00:00
todos fixed
This commit is contained in:
parent
9adb343cf5
commit
4e1f1a5e09
|
|
@ -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'];
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user