提交 e2891c56 编写于 作者: M Michael Boulton

Don't bother sorting headers before sending

上级 1d566c19
......@@ -2662,7 +2662,7 @@ class WebsocketWrapper:
header = "\r\n".join([
"GET {self._path} HTTP/1.1".format(self=self),
"\r\n".join(sorted("{}: {}".format(i, j) for i, j in websocket_headers.items())),
"\r\n".join("{}: {}".format(i, j) for i, j in websocket_headers.items()),
"\r\n",
]).encode("utf8")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册