mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
Just make all the headers lower for now
This commit is contained in:
6
tests/fixtures/migration/new_cassette.json
vendored
6
tests/fixtures/migration/new_cassette.json
vendored
@@ -6,9 +6,9 @@
|
|||||||
"request": {
|
"request": {
|
||||||
"body": null,
|
"body": null,
|
||||||
"headers": {
|
"headers": {
|
||||||
"Accept": ["*/*"],
|
"accept": ["*/*"],
|
||||||
"Accept-Encoding": ["gzip, deflate, compress"],
|
"accept-encoding": ["gzip, deflate, compress"],
|
||||||
"User-Agent": ["python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0"]
|
"user-agent": ["python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0"]
|
||||||
},
|
},
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"uri": "http://httpbin.org/ip"
|
"uri": "http://httpbin.org/ip"
|
||||||
|
|||||||
6
tests/fixtures/migration/new_cassette.yaml
vendored
6
tests/fixtures/migration/new_cassette.yaml
vendored
@@ -3,9 +3,9 @@ interactions:
|
|||||||
- request:
|
- request:
|
||||||
body: null
|
body: null
|
||||||
headers:
|
headers:
|
||||||
Accept: ['*/*']
|
accept: ['*/*']
|
||||||
Accept-Encoding: ['gzip, deflate, compress']
|
accept-encoding: ['gzip, deflate, compress']
|
||||||
User-Agent: ['python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0']
|
user-agent: ['python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0']
|
||||||
method: GET
|
method: GET
|
||||||
uri: http://httpbin.org/ip
|
uri: http://httpbin.org/ip
|
||||||
response:
|
response:
|
||||||
|
|||||||
18
tests/fixtures/migration/old_cassette.json
vendored
18
tests/fixtures/migration/old_cassette.json
vendored
@@ -5,9 +5,9 @@
|
|||||||
"protocol": "http",
|
"protocol": "http",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"headers": {
|
"headers": {
|
||||||
"Accept-Encoding": "gzip, deflate, compress",
|
"accept-encoding": "gzip, deflate, compress",
|
||||||
"Accept": "*/*",
|
"accept": "*/*",
|
||||||
"User-Agent": "python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0"
|
"user-agent": "python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0"
|
||||||
},
|
},
|
||||||
"host": "httpbin.org",
|
"host": "httpbin.org",
|
||||||
"path": "/ip",
|
"path": "/ip",
|
||||||
@@ -19,12 +19,12 @@
|
|||||||
"code": 200
|
"code": 200
|
||||||
},
|
},
|
||||||
"headers": [
|
"headers": [
|
||||||
"Access-Control-Allow-Origin: *\r\n",
|
"access-control-allow-origin: *\r\n",
|
||||||
"Content-Type: application/json\r\n",
|
"content-type: application/json\r\n",
|
||||||
"Date: Mon, 21 Apr 2014 23:13:40 GMT\r\n",
|
"date: Mon, 21 Apr 2014 23:13:40 GMT\r\n",
|
||||||
"Server: gunicorn/0.17.4\r\n",
|
"server: gunicorn/0.17.4\r\n",
|
||||||
"Content-Length: 32\r\n",
|
"content-length: 32\r\n",
|
||||||
"Connection: keep-alive\r\n"
|
"connection: keep-alive\r\n"
|
||||||
],
|
],
|
||||||
"body": {
|
"body": {
|
||||||
"string": "{\n \"origin\": \"217.122.164.194\"\n}"
|
"string": "{\n \"origin\": \"217.122.164.194\"\n}"
|
||||||
|
|||||||
14
tests/fixtures/migration/old_cassette.yaml
vendored
14
tests/fixtures/migration/old_cassette.yaml
vendored
@@ -1,9 +1,9 @@
|
|||||||
- request: !!python/object:vcr.request.Request
|
- request: !!python/object:vcr.request.Request
|
||||||
body: null
|
body: null
|
||||||
headers: !!python/object/apply:__builtin__.frozenset
|
headers: !!python/object/apply:__builtin__.frozenset
|
||||||
- - !!python/tuple [Accept-Encoding, 'gzip, deflate, compress']
|
- - !!python/tuple [accept-encoding, 'gzip, deflate, compress']
|
||||||
- !!python/tuple [User-Agent, python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0]
|
- !!python/tuple [user-agent, python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0]
|
||||||
- !!python/tuple [Accept, '*/*']
|
- !!python/tuple [accept, '*/*']
|
||||||
host: httpbin.org
|
host: httpbin.org
|
||||||
method: GET
|
method: GET
|
||||||
path: /ip
|
path: /ip
|
||||||
@@ -11,8 +11,8 @@
|
|||||||
protocol: http
|
protocol: http
|
||||||
response:
|
response:
|
||||||
body: {string: !!python/unicode "{\n \"origin\": \"217.122.164.194\"\n}"}
|
body: {string: !!python/unicode "{\n \"origin\": \"217.122.164.194\"\n}"}
|
||||||
headers: [!!python/unicode "Access-Control-Allow-Origin: *\r\n", !!python/unicode "Content-Type:
|
headers: [!!python/unicode "access-control-allow-origin: *\r\n", !!python/unicode "content-type:
|
||||||
application/json\r\n", !!python/unicode "Date: Mon, 21 Apr 2014 23:06:09 GMT\r\n",
|
application/json\r\n", !!python/unicode "date: Mon, 21 Apr 2014 23:06:09 GMT\r\n",
|
||||||
!!python/unicode "Server: gunicorn/0.17.4\r\n", !!python/unicode "Content-Length:
|
!!python/unicode "server: gunicorn/0.17.4\r\n", !!python/unicode "content-length:
|
||||||
32\r\n", !!python/unicode "Connection: keep-alive\r\n"]
|
32\r\n", !!python/unicode "connection: keep-alive\r\n"]
|
||||||
status: {code: 200, message: OK}
|
status: {code: 200, message: OK}
|
||||||
|
|||||||
Reference in New Issue
Block a user