Skip to content

Commit 67e3f21

Browse files
authored
Merge pull request #83 from minrk/querystring-is-not-an-object-wtf
query string is an object, but also not an object, on node6
2 parents 530c5d2 + 332a55f commit 67e3f21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/configproxy.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ ConfigurableProxy.prototype.get_routes = function (req, res) {
211211
var inactive_since = null;
212212
if (parsed.query) {
213213
var query = querystring.parse(parsed.query);
214-
if (query.hasOwnProperty('inactive_since')) {
214+
215+
if (query.inactive_since !== undefined) {
215216
var timestamp = Date.parse(query.inactive_since);
216217
if (isFinite(timestamp)) {
217218
inactive_since = new Date(timestamp);

0 commit comments

Comments
 (0)