*Remove commented contentLength
This commit is contained in:
parent
697819bc4e
commit
bb8a5e5ac6
|
@ -377,20 +377,12 @@ export default class IpfsProvider extends BaseProvider {
|
||||||
details: OnHeadersReceivedDetailsType
|
details: OnHeadersReceivedDetailsType
|
||||||
): Promise<BlockingResponse | boolean> {
|
): Promise<BlockingResponse | boolean> {
|
||||||
let headers = [];
|
let headers = [];
|
||||||
// const contentLength = this.getData(details, "contentLength");
|
|
||||||
|
|
||||||
headers.push({
|
headers.push({
|
||||||
name: "Content-Type",
|
name: "Content-Type",
|
||||||
value: this.getData(details, "contentType"),
|
value: this.getData(details, "contentType"),
|
||||||
});
|
});
|
||||||
|
|
||||||
/* if (contentLength) {
|
|
||||||
headers.push({
|
|
||||||
name: "content-length",
|
|
||||||
value: contentLength,
|
|
||||||
});
|
|
||||||
}*/
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
responseHeaders: headers,
|
responseHeaders: headers,
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue