Skip to content

Commit

Permalink
Ignore HPE_HEADER_OVERFLOW on download
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jun 4, 2020
1 parent f860f5a commit ce703e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/remote/activitypub/models/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ export async function createImage(actor: IRemoteUser, value: IObject): Promise<I
logger.warn(`Ignored image: ${image.url} - ${e}`);
return null;
}

// misc
if (e.code === 'HPE_HEADER_OVERFLOW') {
logger.warn(`Ignored image: ${image.url} - ${e.code}`);
return null;
}

throw e;
}

Expand Down

0 comments on commit ce703e9

Please sign in to comment.