mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
use new match
option instead of header
so that it works in IE9 too.
This commit is contained in:
parent
d6d5fa0f8a
commit
ccfde96f67
1 changed files with 3 additions and 6 deletions
|
@ -3,16 +3,13 @@ var api = require('./api');
|
|||
|
||||
module.exports = function smartyStreetApi (params, callback) {
|
||||
defaults(params, {
|
||||
'auth-id': process.env.SMARTY_STREETS_API_KEY
|
||||
'auth-id': process.env.SMARTY_STREETS_API_KEY,
|
||||
'match': 'range'
|
||||
});
|
||||
api({
|
||||
host: 'https://api.smartystreets.com',
|
||||
uri: '/street-address',
|
||||
headers: {
|
||||
'X-Standardize-Only': true
|
||||
},
|
||||
params: params,
|
||||
useXDR: false
|
||||
params: params
|
||||
}, function (err, body, res) {
|
||||
if (err) return callback(err);
|
||||
if (res.statusCode !== 200) {
|
||||
|
|
Loading…
Reference in a new issue