Skip to content

Allow config.transport.proxy to be a String or URI#1788

Merged
st0012 merged 1 commit intogetsentry:masterfrom
jknipp:1782-support-transport-proxy-as-string
Apr 8, 2022
Merged

Allow config.transport.proxy to be a String or URI#1788
st0012 merged 1 commit intogetsentry:masterfrom
jknipp:1782-support-transport-proxy-as-string

Conversation

@jknipp
Copy link
Copy Markdown
Contributor

@jknipp jknipp commented Apr 8, 2022

Description

Fixes #1782

Update config.transport.proxy to allow String and URI values as
previously supported by sentry-ruby versions <= 4.8 using Faraday.

@jknipp jknipp force-pushed the 1782-support-transport-proxy-as-string branch from 24ad414 to 43c1455 Compare April 8, 2022 17:40
@jknipp
Copy link
Copy Markdown
Contributor Author

jknipp commented Apr 8, 2022

I added a simplified version for Faraday's proxy normalization. I'm not sure there is much additional value in going deeper here, but I can update if necessary.

Fixes getsentry#1782

Update `config.transport.proxy` to allow String and URI values as
previously supported by `sentry-ruby` versions <= 4.8 using Faraday.
@jknipp jknipp force-pushed the 1782-support-transport-proxy-as-string branch from 43c1455 to c6131a8 Compare April 8, 2022 18:25
Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jknipp This is an awesome fix. Thank you 👍

@st0012 st0012 added this to the 5.3.0 milestone Apr 8, 2022
@st0012 st0012 merged commit 039a4fc into getsentry:master Apr 8, 2022
@jknipp
Copy link
Copy Markdown
Contributor Author

jknipp commented Apr 8, 2022

Thanks @st0012! 🙌

@jknipp jknipp deleted the 1782-support-transport-proxy-as-string branch April 29, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proxy configuration in version 5+ no longer accepts a URL as a string

2 participants