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