fixes ArgumentError when proxy is used (#20420)
fixes ArgumentError when proxy is used (#20420)

* fixes ArgumentError when proxy is used

* Update app/lib/request.rb

Co-authored-by: Claire <82b964c50e9d1d222e48cf5046e6484a966a7b07@sitedethib.com>

Co-authored-by: Eugen Rochko <fea10b99ef3db434e249704d6518f46bfc5ebfcc@zeonfederated.com>
Co-authored-by: Claire <82b964c50e9d1d222e48cf5046e6484a966a7b07@sitedethib.com>
glitch-soc/mastodon,masto-donte-com-br/mastodon,yukimochi/mastodon,masto-donte-com-br/mastodon,Ryanaka/mastodon,im-in-space/mastodon,gol-cha/mastodon,glitch-soc/mastodon,im-in-space/mastodon,im-in-space/mastodon,Ryanaka/mastodon,theoria24/mastodon,gol-cha/mastodon,maa123/mastodon,maa123/mastodon,theoria24/mastodon,MitarashiDango/mastodon,Ryanaka/mastodon,glitch-soc/mastodon,im-in-space/mastodon,yukimochi/mastodon,gol-cha/mastodon,Ryanaka/mastodon,yukimochi/mastodon,MitarashiDango/mastodon,MitarashiDango/mastodon,gol-cha/mastodon,theoria24/mastodon,masto-donte-com-br/mastodon,glitch-soc/mastodon,masto-donte-com-br/mastodon,maa123/mastodon,yukimochi/mastodon,theoria24/mastodon,MitarashiDango/mastodon,maa123/mastodon