Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
clearbit
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
prospector
clearbit
Commits
7a2a20d1
Commit
7a2a20d1
authored
Oct 12, 2014
by
Ben Drucker
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'auth-fix'
* auth-fix: Update test for fixed basic auth header Fix auth
parents
4cefeda2
2057bb6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
client.js
src/client.js
+1
-0
client.js
test/client.js
+1
-1
No files found.
src/client.js
View file @
7a2a20d1
...
@@ -60,6 +60,7 @@ ClearbitClient.prototype.request = function (options) {
...
@@ -60,6 +60,7 @@ ClearbitClient.prototype.request = function (options) {
{
{
timeout
:
options
.
stream
?
60000
:
5000
,
timeout
:
options
.
stream
?
60000
:
5000
,
username
:
this
.
key
,
username
:
this
.
key
,
password
:
''
,
user_agent
:
'ClearbitNode/v'
+
pkg
.
version
user_agent
:
'ClearbitNode/v'
+
pkg
.
version
}
}
)
)
...
...
test/client.js
View file @
7a2a20d1
...
@@ -118,7 +118,7 @@ describe('Client', function () {
...
@@ -118,7 +118,7 @@ describe('Client', function () {
it
(
'sends a basic auth header'
,
function
()
{
it
(
'sends a basic auth header'
,
function
()
{
mock
mock
.
get
(
'/v1/people/email/bvdrucker@gmail.com'
)
.
get
(
'/v1/people/email/bvdrucker@gmail.com'
)
.
matchHeader
(
'Authorization'
,
'Basic a
w=
='
)
.
matchHeader
(
'Authorization'
,
'Basic a
zo
='
)
.
reply
(
202
);
.
reply
(
202
);
return
client
.
request
({
return
client
.
request
({
api
:
'person'
,
api
:
'person'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment