Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fullcontact
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
fullcontact
Commits
3b04bd8a
Commit
3b04bd8a
authored
Oct 01, 2013
by
3rd-Eden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Don't access the req.headers before checking if there's an error. Fixes #2
parent
67b79c13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
index.js
+2
-2
No files found.
index.js
View file @
3b04bd8a
...
@@ -72,12 +72,12 @@ FullContact.prototype.request = function req(packet, args) {
...
@@ -72,12 +72,12 @@ FullContact.prototype.request = function req(packet, args) {
,
self
=
this
;
,
self
=
this
;
request
(
packet
,
function
requested
(
err
,
res
,
body
)
{
request
(
packet
,
function
requested
(
err
,
res
,
body
)
{
if
(
err
)
return
fn
(
err
);
self
.
ratereset
=
+
res
.
headers
[
'x-rate-limit-reset'
]
||
self
.
ratereste
;
self
.
ratereset
=
+
res
.
headers
[
'x-rate-limit-reset'
]
||
self
.
ratereste
;
self
.
ratelimit
=
+
res
.
headers
[
'x-rate-limit-limit'
]
||
self
.
ratelimit
;
self
.
ratelimit
=
+
res
.
headers
[
'x-rate-limit-limit'
]
||
self
.
ratelimit
;
self
.
remaining
=
+
res
.
headers
[
'x-rate-limit-remaining'
]
||
self
.
remaining
;
self
.
remaining
=
+
res
.
headers
[
'x-rate-limit-remaining'
]
||
self
.
remaining
;
if
(
err
)
return
fn
(
err
);
//
//
// Parse response to JSON.
// Parse response to JSON.
//
//
...
...
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