Permalink
Browse files

Replaced standard query string parsing with node-querystring

  • Loading branch information...
1 parent 3d1f224 commit 3b2ed979652b880137d4326bf0df54e5911922c8 @gomfunkel committed Jun 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mailchimp/MailChimpWebhook.js
@@ -1,7 +1,7 @@
var http = require('http'),
util = require('util'),
url = require('url'),
- querystring = require('querystring'),
+ qs = require('qs'),
EventEmitter = require('events').EventEmitter;
/**
@@ -83,7 +83,7 @@ function MailChimpWebhook (options) {
request.on('end', function () {
- var payload = querystring.parse(requestBody);
+ var payload = qs.parse(requestBody);
var meta = { type : payload.type, fired_at : payload.fired_at };
var data = payload.data;

0 comments on commit 3b2ed97

Please sign in to comment.