mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
fix docs for post data filter
This commit is contained in:
committed by
Ivan Malison
parent
0def349420
commit
9038bc9066
@@ -295,7 +295,7 @@ with my_vcr.use_cassette('test.yml', filter_query_parameters=['api_key']):
|
||||
```
|
||||
|
||||
### Filter information from HTTP post data
|
||||
Use the `filter_post_data_parameters` configuration option with a list of query
|
||||
Use the `filter_post_data_parameters` configuration option with a list of post data
|
||||
parameters to filter.
|
||||
|
||||
```python
|
||||
@@ -305,7 +305,7 @@ with my_vcr.use_cassette('test.yml', filter_post_data_parameters=['client_secret
|
||||
|
||||
### Custom Request filtering
|
||||
|
||||
If neither of these covers your request filtering needs, you can register a callback
|
||||
If none of these covers your request filtering needs, you can register a callback
|
||||
that will manipulate the HTTP request before adding it to the cassette. Use the
|
||||
`before_record` configuration option to so this. Here is an example that will
|
||||
never record requests to the /login endpoint.
|
||||
|
||||
Reference in New Issue
Block a user