@@ -110,19 +110,19 @@ def get(self, url: str, **kwargs: Any) -> str:
110
110
111
111
def post (self , url : str , data : Dict [str , Any ], ** kwargs : Any ) -> str :
112
112
"""POST to the URL and return the text."""
113
- return self .requests .post (url , json = data , headers = self . headers , ** kwargs ).text
113
+ return self .requests .post (url , data , ** kwargs ).text
114
114
115
115
def patch (self , url : str , data : Dict [str , Any ], ** kwargs : Any ) -> str :
116
116
"""PATCH the URL and return the text."""
117
- return self .requests .patch (url , json = data , headers = self . headers , ** kwargs ).text
117
+ return self .requests .patch (url , data , ** kwargs ).text
118
118
119
119
def put (self , url : str , data : Dict [str , Any ], ** kwargs : Any ) -> str :
120
120
"""PUT the URL and return the text."""
121
- return self .requests .put (url , json = data , headers = self . headers , ** kwargs ).text
121
+ return self .requests .put (url , data , ** kwargs ).text
122
122
123
123
def delete (self , url : str , ** kwargs : Any ) -> str :
124
124
"""DELETE the URL and return the text."""
125
- return self .requests .delete (url , headers = self . headers , ** kwargs ).text
125
+ return self .requests .delete (url , ** kwargs ).text
126
126
127
127
async def aget (self , url : str , ** kwargs : Any ) -> str :
128
128
"""GET the URL and return the text asynchronously."""
0 commit comments