mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +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
|
q = urlparse(self.uri).query
|
||||||
return sorted(parse_qsl(q))
|
return sorted(parse_qsl(q))
|
||||||
|
|
||||||
|
# alias for backwards compatibility
|
||||||
@property
|
@property
|
||||||
def url(self):
|
def url(self):
|
||||||
return self.uri
|
return self.uri
|
||||||
|
|
||||||
|
# alias for backwards compatibility
|
||||||
|
@property
|
||||||
|
def protocol(self):
|
||||||
|
return self.scheme
|
||||||
|
|
||||||
def __key(self):
|
def __key(self):
|
||||||
return (
|
return (
|
||||||
self.method,
|
self.method,
|
||||||
|
|||||||
Reference in New Issue
Block a user