Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

fix ill formatted http Authorization string #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 11, 2017

  1. fix ill formatted http Authorization string

    with python3, the NTLM Authorization string is of byte type.
    
    when concatenate it with the prefix, python adds b'' around the authorization string.
    
    for example, instead of generating:
    
    Authorization: NTLM TlRMTVNTUAABAAAAB7IIogoACgAyBBBBCgAKACgBBBBFASgKAAAAD1NISVktUDlYNzlOVklESUEuQ09N
    
    as would by python-ntlm,
    
    python-ntlm3 generated:
    
    Authorization: NTLM b'TlRMTVNTUAABAAAAB7IIogoACgAyBBBBCgAKACgBBBBFASgKAAAAD1NISVktUDlYNzlOVklESUEuQ09N'
    
    this resulted in server rejection (http 400 bad request)
    shi-yan committed May 11, 2017
    Configuration menu
    Copy the full SHA
    83288c0 View commit details
    Browse the repository at this point in the history