Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Allow unauthenticated client #40

Merged
merged 1 commit into from
Apr 18, 2020
Merged

Allow unauthenticated client #40

merged 1 commit into from
Apr 18, 2020

Conversation

lukecyca
Copy link
Contributor

Currently New(auth, baseURL) accepts two types of values for auth:

  1. a string containing a : which is interpreted as user:password
  2. any other string is interpreted as a Bearer token

This PR adds a third possibility: an empty string indicating that no authentication should be performed.

@mlclmj mlclmj merged commit 23ff932 into nytm:master Apr 18, 2020
@mlclmj
Copy link
Contributor

mlclmj commented Apr 18, 2020

thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants