[Pkg-javascript-commits] [node-body-parser] 05/07: refresh iconv patch

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri Sep 12 05:57:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-body-parser.

commit 93af767f72752751260f313a56278273131df753
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Tue Sep 9 16:50:18 2014 +0000

    refresh iconv patch
---
 debian/patches/iconv.patch | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/debian/patches/iconv.patch b/debian/patches/iconv.patch
index 56d748c..da20280 100644
--- a/debian/patches/iconv.patch
+++ b/debian/patches/iconv.patch
@@ -3,20 +3,19 @@ Description: use iconv instead of iconv-lite
  API. Now body-parser depends on iconv.
 Author: Andrew Kelley <superjoe30 at gmail.com>
 Forwarded: not-needed
-Last-Update: 2014-06-30
 
---- node-body-parser-1.4.3.orig/lib/read.js
-+++ node-body-parser-1.4.3/lib/read.js
-@@ -8,7 +8,7 @@
+--- node-body-parser-1.8.1.orig/lib/read.js
++++ nody-body-parser-1.8.1/lib/read.js
+@@ -9,7 +9,7 @@
   */
  
  var getBody = require('raw-body')
 -var iconv = require('iconv-lite')
 +var Iconv = require('iconv').Iconv;
+ var onFinished = require('on-finished')
  var typer = require('media-typer')
  var zlib = require('zlib')
- 
-@@ -91,7 +91,7 @@ function read(req, res, next, parse, opt
+@@ -86,7 +86,7 @@ function read(req, res, next, parse, options) {
      // parse
      try {
        body = typeof body !== 'string' && encoding !== null
@@ -24,9 +23,9 @@ Last-Update: 2014-06-30
 +        ? iconvDecode(body, encoding)
          : body
        req.body = parse(body)
-     } catch (err){
-@@ -111,6 +111,11 @@ function read(req, res, next, parse, opt
-   }
+     } catch (err) {
+@@ -101,6 +101,11 @@ function read(req, res, next, parse, options) {
+   })
  }
  
 +function iconvDecode(body, encoding) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-body-parser.git



More information about the Pkg-javascript-commits mailing list