Skip to content

urllib.error.URLError: <urlopen error unknown url type: b'http>, #181

@imaxu

Description

@imaxu

with py3.8,I found a error when I save a file : urllib.error.URLError: <urlopen error unknown url type: b'http>, I found the codes:

        if cls.__name__ == 'File':
             request = Request(url.encode('utf-8'), data, headers)
         else:
             request = Request(url, data, headers)

it will be a bytes array when url.encode('utf-8'), why do this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions