hearchco / agent

Agent for Hearchco built using Go.
https://hearch.co
GNU Affero General Public License v3.0
19 stars 1 forks source link

fix(imageproxy): switch to get and copy body instead of reverse proxy #340

Closed aleksasiriski closed 1 week ago

aleksasiriski commented 1 week ago

This fixes a bug where the authorized URLs for favicons would reverse proxy the authorization back to the client, which is very weird to see :)

Also, clients now load less data (only the body and 3 required headers), and only if the requested URL is an actual image with OK 200 response.

BREAKING: Config for image proxy timeout has changed from multiple values to a single value.