mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 22:34:21 +01:00
Fix bug in bfxapi.middleware sub-package.
This commit is contained in:
@@ -55,7 +55,7 @@ class Middleware(object):
|
||||
return data
|
||||
|
||||
def _POST(self, endpoint: str, params: Optional["_Params"] = None, body: Optional[Any] = None, _ignore_authentication_headers: bool = False) -> Any:
|
||||
data = json.dumps(body, cls=JSONEncoder)
|
||||
data = body and json.dumps(body, cls=JSONEncoder) or None
|
||||
|
||||
headers = { "Content-Type": "application/json" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user