umputun / remark42

comment engine
https://remark42.com
MIT License
4.77k stars 375 forks source link

Add content type check for images endpoint #1796

Closed umputun closed 2 weeks ago

umputun commented 2 weeks ago

This PR adds a check in image proxy download for validating content type.

umputun commented 2 weeks ago

note: I had to add a way to alter public routes limiter because on a fast local box without enforcing sequential tests execution, we run into limiter's 429. This limiter value is not exposed, used for tests only and shouldn't change anything else