gruns / gruns/furl

default port not properly removed with set(netloc=None) and weird interaction with set(scheme=None)

Open
#143 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
165
PR merge metrics
No merged PRs in 30d

Description

ex:

```python
>>> f = furl('https://www.google.com/hello')
>>> f.copy().set(scheme=None, netloc=None).url
'//:443/hello/'
```

vs

```python
>>> f = furl('https://www.google.com/hello')
>>> f.copy().set(scheme=None).set(netloc=None).url
'/hello'
```

and oddity with `.set(scheme=None)`

```
>>> f = furl('https://www.google.com:999/hello')
>>> f.copy().set(scheme=None, netloc=None).url
'//:443/hello'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.