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

Fix basic authentication header #55

Merged
merged 1 commit into from
Sep 23, 2015
Merged

Fix basic authentication header #55

merged 1 commit into from
Sep 23, 2015

Conversation

cmarat
Copy link
Contributor

@cmarat cmarat commented Aug 27, 2015

base64.encodestring always adds a trailing newline '\n' to the encoded string, which causes httplib to raise ValueError. Using base64.b64encode solves the issue.

base64.encodestring always adds a trailing newline '\n' to the encoded string, which causes httplib to raise ValueError. Using base64.b64encode solves the issue.
@joernhees
Copy link
Member

this fix seems to work, the failing tests seem to be unrelated as they fail for master as well (see #57)

shall we merge this? any ideas how to include a test for this?

@cmarat
Copy link
Contributor Author

cmarat commented Sep 21, 2015

the bug is caused by using a wrong function. making a test for this case is a bit like adding a regression test for a typo. do you really need it?

@joernhees
Copy link
Member

well, if we had an end to end test that would (set up and) try to connect to a sparql server with a known username and password, we would've been alerted that something in the auth code is broken in the first place...

anyhow, i'll not leave this broken till we find a way to properly test this.

joernhees added a commit that referenced this pull request Sep 23, 2015
Fix basic authentication header
@joernhees joernhees merged commit e7a06be into RDFLib:master Sep 23, 2015
@joernhees joernhees added the bug label Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants