Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typos in urllib2 ( cvs ) #34113

Closed
winnegan mannequin opened this issue Mar 7, 2001 · 3 comments
Closed

typos in urllib2 ( cvs ) #34113

winnegan mannequin opened this issue Mar 7, 2001 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@winnegan
Copy link
Mannequin

winnegan mannequin commented Mar 7, 2001

BPO 406683
Files
  • urllib2.diff: Fixing typos in urllib2.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2001-03-18.09:14:00.000>
    created_at = <Date 2001-03-07.13:23:44.000>
    labels = ['library']
    title = 'typos in urllib2 ( cvs )'
    updated_at = <Date 2001-03-18.09:14:00.000>
    user = 'https://bugs.python.org/winnegan'

    bugs.python.org fields:

    activity = <Date 2001-03-18.09:14:00.000>
    actor = 'moshez'
    assignee = 'moshez'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2001-03-07.13:23:44.000>
    creator = 'winnegan'
    dependencies = []
    files = ['18']
    hgrepos = []
    issue_num = 406683
    keywords = []
    message_count = 3.0
    messages = ['3765', '3766', '3767']
    nosy_count = 3.0
    nosy_names = ['moshez', 'winnegan', 'ejfc']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue406683'
    versions = []

    @winnegan
    Copy link
    Mannequin Author

    winnegan mannequin commented Mar 7, 2001

    urllib2.ProxyHandler fails due to typos when using proxy
    autthentication, patch included.

    @winnegan winnegan mannequin closed this as completed Mar 7, 2001
    @winnegan winnegan mannequin assigned moshez Mar 7, 2001
    @winnegan winnegan mannequin added the stdlib Python modules in the Lib dir label Mar 7, 2001
    @winnegan winnegan mannequin closed this as completed Mar 7, 2001
    @winnegan winnegan mannequin assigned moshez Mar 7, 2001
    @winnegan winnegan mannequin added the stdlib Python modules in the Lib dir label Mar 7, 2001
    @ejfc
    Copy link
    Mannequin

    ejfc mannequin commented Mar 8, 2001

    Logged In: YES
    user_id=169128

    I have corrected the patch to reflect proper Basic
    Authentication:

    --- /var/local/cvs/python/dist/src/Lib/urllib2.py	Thu 
    Mar  1 09:46:07 2001
    +++ /usr/local/lib/python2.1/urllib2.py	Thu Mar  8 17:23:31 
    2001
    @@ -477,8 +477,8 @@
             host, XXX = splithost(r_type)
             if '@' in host:
                 user_pass, host = host.split('@', 1)
    -            user_pass = base64.encode_string(unquote
    (user_passw)).strip()
    -            req.addheader('Proxy-Authorization', user_pass)
    +            user_pass = "Basic " + base64.encodestring
    (unquote(user_pass)).strip()
    +            req.add_header('Proxy-Authorization', 
    user_pass)
             host = unquote(host)
             req.set_proxy(host, type)
             if orig_type == type:

    @moshez
    Copy link
    Mannequin

    moshez mannequin commented Mar 18, 2001

    Logged In: YES
    user_id=11645

    Fixed. (Did not use the patch -- fixed it myself)

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants