mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
Updated default 'match_on'
This commit is contained in:
@@ -9,7 +9,7 @@ class VCR(object):
|
|||||||
serializer='yaml',
|
serializer='yaml',
|
||||||
cassette_library_dir=None,
|
cassette_library_dir=None,
|
||||||
record_mode="once",
|
record_mode="once",
|
||||||
match_on=['url', 'method'],
|
match_on=['method', 'host', 'port', 'path', 'query'],
|
||||||
filter_headers=[],
|
filter_headers=[],
|
||||||
filter_query_parameters=[],
|
filter_query_parameters=[],
|
||||||
before_record=None,
|
before_record=None,
|
||||||
@@ -25,7 +25,9 @@ class VCR(object):
|
|||||||
'method': method,
|
'method': method,
|
||||||
'url': url,
|
'url': url,
|
||||||
'host': host,
|
'host': host,
|
||||||
|
'port': method,
|
||||||
'path': path,
|
'path': path,
|
||||||
|
'query': path,
|
||||||
'headers': headers,
|
'headers': headers,
|
||||||
'body': body,
|
'body': body,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user