Skip to content
Browse files

fix header parsing regexp

  • Loading branch information...
1 parent 25d28d5 commit 935b73e6d7790b2fad9ea1f262665446526690dd @mscdex committed Mar 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nntp.js
View
2 lib/nntp.js
@@ -14,7 +14,7 @@ var tls = require('tls'),
reGroupDesc = /^([^\s]+)\s+(.+)$/,
reStat = /^(\d+)\s+(.+)$/,
reGroup = /^(\d+)\s+(\d+)\s+(\d+)\s/,
- reHdr = /^([^:]+):\s?(.+)?$/,
+ reHdr = /^([^:]+):[ \t]?(.+)?$/,
respsML = [100, 101, 215, 220, 221, 222, 224, 225, 230, 231],
respsHaveArgs = [111, 211, 220, 221, 222, 223, 401],
bytesCRLF = new Buffer([13, 10]),

0 comments on commit 935b73e

Please sign in to comment.
Something went wrong with that request. Please try again.