Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

relax parsing of folded header values

  • Loading branch information...
commit fc7606b8b79f32d4563da46147ed9cd4a7e4d803 1 parent 8527cab
@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 = /^([^:]+):\s?(.+)?$/,
reHdrFold = /^\s+(.+)$/,
respsML = [100, 101, 215, 220, 221, 222, 224, 225, 230, 231],
respsHaveArgs = [111, 211, 220, 221, 222, 223, 401],
Please sign in to comment.
Something went wrong with that request. Please try again.