Pull requests

#21 Merged
Repository
jdye jdye
Branch
default
Repository
pypa pypa
Branch
default

fixes a bug where a Basic auth digest header can get encoded with newlines inside

Author
  1. Jonathan Dye
Reviewers
Description

i ran into this bug because i was using a localshop server, which uses long tokens for the username and password. the output from the base64 encoding module will write newlines according to the spec (76 characters i think), and they were getting sent as part of the basic auth header thusly:

============== 8< ============

Authorization: Basic MDVmZDMyYgkyNgg0NDczY2FiMDAwZjBhY2I5NGRkYzg2NDZlYmMyNmNhNGExNDA5OGI5YWQ2MzFl M2RkMmMxYjE=

============== 8< ============

Comments (6)