Skip to content

Commit

Permalink
fix: stops matching on headers
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar authored and nguyentoanit committed Oct 19, 2019
1 parent 59657c9 commit affb06b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"entries": [
{
"_id": "b3b1b482066f3fa509c2b49732a9c1e4",
"_id": "c42f2255b582a829ce7e7e5cbb1b74ff",
"_order": 0,
"cache": {},
"request": {
Expand Down Expand Up @@ -76,7 +76,7 @@
},
{
"name": "date",
"value": "Thu, 17 Oct 2019 20:21:40 GMT"
"value": "Thu, 17 Oct 2019 20:56:51 GMT"
},
{
"name": "content-type",
Expand All @@ -96,15 +96,15 @@
},
{
"name": "x-amz-request-id",
"value": "DGTFVV64PJVT9Z62AM5T"
"value": "FPB0WJ3YFD6XZXK2NE3Z"
},
{
"name": "vary",
"value": "Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent"
},
{
"name": "x-amz-rid",
"value": "DGTFVV64PJVT9Z62AM5T"
"value": "FPB0WJ3YFD6XZXK2NE3Z"
}
],
"headersSize": 386,
Expand All @@ -113,16 +113,16 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2019-10-17T20:21:30.287Z",
"time": 380,
"startedDateTime": "2019-10-17T20:56:40.791Z",
"time": 381,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 380
"wait": 381
}
}
],
Expand Down
3 changes: 3 additions & 0 deletions test/polly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export default function(pollyConfig: PollyConfig = {}) {
},
recordIfMissing: true,
recordFailedRequests: true,
matchRequestsBy: {
headers: false,
},

// overwrite default config
...pollyConfig,
Expand Down

0 comments on commit affb06b

Please sign in to comment.