@@ -31,7 +31,8 @@ def merged_headers(self, header):
31
31
return _header
32
32
33
33
def call (self , path ):
34
- return self .call_with (path , None )
34
+ ret , err , code = self .call_with (path , None )
35
+ return ret , err
35
36
36
37
def call_with (self , path , body , content_type = None , content_length = None ):
37
38
ret = None
@@ -59,9 +60,9 @@ def call_with(self, path, body, content_type=None, content_length=None):
59
60
if reqid is not None :
60
61
err_msg += ", reqid:%s" % reqid
61
62
62
- return None , err_msg
63
+ return None , err_msg , resp . status
63
64
64
- return ret , None
65
+ return ret , None , resp . status
65
66
66
67
def call_with_multipart (self , path , fields = None , files = None ):
67
68
"""
@@ -87,7 +88,8 @@ def call_with_form(self, path, ops):
87
88
body = '&' .join (body )
88
89
89
90
content_type = "application/x-www-form-urlencoded"
90
- return self .call_with (path , body , content_type , len (body ))
91
+ ret , err , code = self .call_with (path , body , content_type , len (body ))
92
+ return ret , err
91
93
92
94
def set_header (self , field , value ):
93
95
self ._header [field ] = value
0 commit comments