Skip to content

Commit

Permalink
switched to using https for census data requests per their api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomFractals committed Nov 3, 2017
1 parent f1e38b8 commit b872c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var express = require('express');
var router = express.Router();
var path = require('path');
var async = require('async');
var http = require('http');
var https= require('https');
var CensusDataKey = process.env.CENSUS_DATA_API_KEY;

/**
Expand Down Expand Up @@ -33,7 +33,7 @@ router.get('/census/population/:query?', function(request, response, next) {
'?get=' + queryParams.get +
'&for=' + queryParams.for +
'&key=' + queryParams.key;
http.request({
https.request({
host: 'api.census.gov',
method: 'GET',
path: requestPath
Expand Down

0 comments on commit b872c70

Please sign in to comment.