Skip to content

Conversation

lepri
Copy link

@lepri lepri commented Jul 12, 2020

When we're using Python 3.8 we get a duplicated path when URL ends with '/'.
i.e.: 'https://api.iugu.com/v1/customers/customers'

When we're using Python 3.8 we get a duplicated path when URL ends with '/'.
i.e.: 'https://api.iugu.com/v1/customers/customers'
@lepri
Copy link
Author

lepri commented Jul 14, 2020

>>> url = 'https://api.iugu.com/v1/'
>>> path = 'customers'
>>> re.sub(r'/?$', re.sub(r'^/?', '/', str(path)), url)
 'https://api.iugu.com/v1/customers/customers'

@lepri
Copy link
Author

lepri commented Aug 10, 2020

Hi,

Anyone can take a look at this PR?

Copy link

@thamiriszalko thamiriszalko left a comment

Choose a reason for hiding this comment

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

It works for me too! It's working locally.

@guilhermej
Copy link

This will not be merged? This company is a joke.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants