Skip to content

make sure the url used by proxy is same as original url

Sachin Joshi requested to merge satchinjoshi/pleroma:proxy-error into develop

Issue: #1055 (closed)

URL: https://www.theguardian.com/commentisfree/2019/jul/03/land-reform-brute-power-billionaire-press-attacks

URL in the site -> https://i.guim.co.uk/img/media/1069ef13c447908272c4de94174cec2b6352cb2f/0_91_2000_1201/master/2000.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMucG5n&s=d6663f6114e8b0910d09c5bad111930b

URL parsed by our proxy -> https://i.guim.co.uk/img/media/1069ef13c447908272c4de94174cec2b6352cb2f/0_91_2000_1201/master/2000.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom,left&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctb3BpbmlvbnMucG5n&enable=upscale&s=d6663f6114e8b0910d09c5bad111930b

The difference is %2C and ,

So what I did was removed the encoding and decoding part which seems to solve the issue

Edited by Sachin Joshi

Merge request reports