Skip to content

Commit

Permalink
Merge pull request #177 from hapijs/AdriVanHoudt-patch-1
Browse files Browse the repository at this point in the history
fix(json): allow numbers in mime fixes #176
  • Loading branch information
geek authored Apr 25, 2017
2 parents 34e5a8e + abbd2e7 commit 04a2d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Tap = require('./tap');
// Declare internals

const internals = {
jsonRegex: /^application\/[a-z.+-]*json$/,
jsonRegex: /^application\/([a-z0-9.]*[+-]json|json)$/,
shallowOptions: ['agent', 'agents', 'beforeRedirect', 'downstreamRes', 'payload', 'redirected'],
emitSymbol: Symbol.for('wreck')
};
Expand Down

0 comments on commit 04a2d70

Please sign in to comment.