mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Added 'protocol' to Request for backwards compatibility
This commit is contained in:
@@ -36,10 +36,16 @@ class Request(object):
|
||||
q = urlparse(self.uri).query
|
||||
return sorted(parse_qsl(q))
|
||||
|
||||
# alias for backwards compatibility
|
||||
@property
|
||||
def url(self):
|
||||
return self.uri
|
||||
|
||||
# alias for backwards compatibility
|
||||
@property
|
||||
def protocol(self):
|
||||
return self.scheme
|
||||
|
||||
def __key(self):
|
||||
return (
|
||||
self.method,
|
||||
|
||||
Reference in New Issue
Block a user