@@ -58,7 +58,7 @@ describe('raven.parsers', function(){
58
58
it ( 'should detect headers via `req.headers`' , function ( ) {
59
59
var mockReq = {
60
60
method : 'GET' ,
61
- host : 'mattrobenolt.com' ,
61
+ hostname : 'mattrobenolt.com' ,
62
62
url : '/some/path?key=value' ,
63
63
headers : {
64
64
foo : 'bar'
@@ -73,7 +73,7 @@ describe('raven.parsers', function(){
73
73
it ( 'should detect headers via `req.header`' , function ( ) {
74
74
var mockReq = {
75
75
method : 'GET' ,
76
- host : 'mattrobenolt.com' ,
76
+ hostname : 'mattrobenolt.com' ,
77
77
url : '/some/path?key=value' ,
78
78
header : {
79
79
foo : 'bar'
@@ -90,7 +90,7 @@ describe('raven.parsers', function(){
90
90
it ( 'should detect method via `req.method`' , function ( ) {
91
91
var mockReq = {
92
92
method : 'GET' ,
93
- host : 'mattrobenolt.com' ,
93
+ hostname : 'mattrobenolt.com' ,
94
94
url : '/some/path?key=value'
95
95
} ;
96
96
@@ -101,10 +101,10 @@ describe('raven.parsers', function(){
101
101
} ) ;
102
102
103
103
describe ( '`host` detection' , function ( ) {
104
- it ( 'should detect host via `req.host `' , function ( ) {
104
+ it ( 'should detect host via `req.hostname `' , function ( ) {
105
105
var mockReq = {
106
106
method : 'GET' ,
107
- host : 'mattrobenolt.com' ,
107
+ hostname : 'mattrobenolt.com' ,
108
108
url : '/some/path?key=value'
109
109
} ;
110
110
@@ -243,7 +243,7 @@ describe('raven.parsers', function(){
243
243
it ( 'should detect query via `req.query`' , function ( ) {
244
244
var mockReq = {
245
245
method : 'GET' ,
246
- host : 'mattrobenolt.com' ,
246
+ hostname : 'mattrobenolt.com' ,
247
247
url : '/some/path?key=value' ,
248
248
query : { some : 'key' }
249
249
} ;
@@ -256,7 +256,7 @@ describe('raven.parsers', function(){
256
256
it ( 'should detect query via `req.url`' , function ( ) {
257
257
var mockReq = {
258
258
method : 'GET' ,
259
- host : 'mattrobenolt.com' ,
259
+ hostname : 'mattrobenolt.com' ,
260
260
url : '/some/path?foo=bar' ,
261
261
} ;
262
262
@@ -272,7 +272,7 @@ describe('raven.parsers', function(){
272
272
method : 'GET' ,
273
273
url : '/some/path?key=value' ,
274
274
headers : {
275
- host : 'mattrobenolt.com' ,
275
+ hostname : 'mattrobenolt.com' ,
276
276
} ,
277
277
ip : '69.69.69.69'
278
278
} ;
@@ -287,7 +287,7 @@ describe('raven.parsers', function(){
287
287
method : 'GET' ,
288
288
url : '/some/path?key=value' ,
289
289
headers : {
290
- host : 'mattrobenolt.com' ,
290
+ hostname : 'mattrobenolt.com' ,
291
291
} ,
292
292
connection : {
293
293
remoteAddress : '69.69.69.69'
@@ -305,7 +305,7 @@ describe('raven.parsers', function(){
305
305
var mockReq = {
306
306
method : 'GET' ,
307
307
protocol : 'https' ,
308
- host : 'mattrobenolt.com' ,
308
+ hostname : 'mattrobenolt.com' ,
309
309
originalUrl : '/some/path?key=value'
310
310
} ;
311
311
@@ -318,7 +318,7 @@ describe('raven.parsers', function(){
318
318
var mockReq = {
319
319
method : 'GET' ,
320
320
protocol : 'https' ,
321
- host : 'mattrobenolt.com' ,
321
+ hostname : 'mattrobenolt.com' ,
322
322
url : '/some/path?key=value'
323
323
} ;
324
324
@@ -332,7 +332,7 @@ describe('raven.parsers', function(){
332
332
it ( 'should detect body via `req.body`' , function ( ) {
333
333
var mockReq = {
334
334
method : 'GET' ,
335
- host : 'mattrobenolt.com' ,
335
+ hostname : 'mattrobenolt.com' ,
336
336
url : '/some/path?key=value' ,
337
337
body : 'foo=bar'
338
338
} ;
@@ -345,7 +345,7 @@ describe('raven.parsers', function(){
345
345
it ( 'should fallback to <unavailable> if body is not available' , function ( ) {
346
346
var mockReq = {
347
347
method : 'GET' ,
348
- host : 'mattrobenolt.com' ,
348
+ hostname : 'mattrobenolt.com' ,
349
349
url : '/some/path?key=value' ,
350
350
body : ''
351
351
} ;
0 commit comments