Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix header parsing regexp

  • Loading branch information...
commit 935b73e6d7790b2fad9ea1f262665446526690dd 1 parent 25d28d5
@mscdex authored
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]),
Please sign in to comment.
Something went wrong with that request. Please try again.