Skip to content

Commit

Permalink
Merge pull request vnpy#2957 from noranhe/update_huobis_10054
Browse files Browse the repository at this point in the history
修复HuobisGateway的ConnectionResetError问题
  • Loading branch information
vnpy authored Apr 30, 2021
2 parents a9d7a78 + 14db625 commit 58e90df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vnpy/gateway/huobis/huobis_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ def sign(self, request) -> Request:
Generate HUOBIS signature.
"""
request.headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36",
"Connection": "close"
}
params_with_signature = create_signature(
self.key,
Expand Down

0 comments on commit 58e90df

Please sign in to comment.