Permalink
Browse files

#1258 fix negotiator type so we are not creating a new negotiator eve…

…ry time
  • Loading branch information...
1 parent 62ca1af commit 024cf58dbf1537dbc69c58a7ef2c7a38165b0214 @yunong yunong committed Jan 9, 2017
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/request.js
View
@@ -8,7 +8,7 @@ var sprintf = require('util').format;
var assert = require('assert-plus');
var mime = require('mime');
-var Negotatior = require('negotiator');
+var Negotiator = require('negotiator');
var uuid = require('uuid');
var dtrace = require('./dtrace');
@@ -31,8 +31,8 @@ var Request = http.IncomingMessage;
function negotiator(req) {
var h = req.headers;
- if (!req._negotatiator) {
- req._negotiator = new Negotatior({
+ if (!req._negotiator) {
+ req._negotiator = new Negotiator({
headers: {
accept: h.accept || '*/*',
'accept-encoding': h['accept-encoding'] ||

0 comments on commit 024cf58

Please sign in to comment.