Commit Graph
29 Commits
Author SHA1 Message Date
Sheng ad12876b0c Strip encoding 2018-08-28 20:25:07 +08:00
Sheng 688ca78bb2 Use command "locale charmap" to detect encoding 2018-08-28 07:55:41 +08:00
Sheng 80bdddc280 Added setting swallow_http_errors 2018-08-28 07:43:43 +08:00
Sheng 9b38d111f4 Use class attribute formater 2018-08-26 19:31:45 +08:00
Sheng b69bdefcc9 Changed log message 2018-08-26 19:08:02 +08:00
Sheng 1a3880ecee Raise InvalidException for empty required value 2018-08-26 15:40:08 +08:00
Sheng 5519a17016 Return 400 http error for invalid post requests 2018-08-26 15:13:02 +08:00
Sheng df26d0e677 Catch ValueError instead of Exception for post method 2018-08-25 19:51:05 +08:00
Sheng 9fd8d1368c Added get_password method 2018-08-25 18:19:25 +08:00
Sheng 48acf09f21 Move method get_value to MixinHandler 2018-08-25 17:35:31 +08:00
Sheng 4710d8c0e6 Added connect_with_options function 2018-08-24 11:11:43 +08:00
Sheng 2e34702988 Changed validation error messages 2018-08-22 17:37:23 +08:00
Sheng 3c139e05f8 Added KEY_MAX_SIZE to validate the private key 2018-08-22 13:03:14 +08:00
Sheng 37299468a9 Added is_valid_hostname to utils 2018-08-20 21:20:55 +08:00
Sheng bd803328fc Changed error message 2018-08-20 18:55:00 +08:00
Sheng e85ae1692e Added to_bytes function to utils 2018-08-20 18:36:04 +08:00
Sheng 614d6e8a5b Changed error message 2018-08-18 19:41:36 +08:00
Sheng 1e4ece58c8 Added functions for validating ip and port 2018-08-10 09:23:25 +08:00
Sheng 469d86ac77 Auto detect system default encoding 2018-05-30 21:29:44 +08:00
Sheng cb5424a166 Added dummy check_channel_window_change_request for testing 2018-05-30 17:35:51 +08:00
Sheng 96d9ae5b4d Use JSONDecodeError 2018-05-26 16:23:55 +08:00
Sheng a893507946 Made WsockHandler more robust 2018-05-26 15:51:53 +08:00
Sheng c439f2b6ee Instantly update pseudo-terminal size by client terminal size 2018-05-23 20:25:28 +08:00
Sheng 20be29f989 Use warning instead of warn 2018-04-27 08:50:21 +08:00
Sheng ffb776ca6c Use absolute path for importing modules 2018-04-26 22:38:16 +08:00
Sheng f78588bcc1 Change self to cls in class methods 2018-04-26 22:29:51 +08:00
Sheng d6e4339540 Updated test_handler.py 2018-04-25 21:05:01 +08:00
Sheng d1177bc2c5 Updated handler.py and test_hanlder.py 2018-04-25 19:01:54 +08:00
Sheng 09d5804a09 Prepare to write unit tests 2018-04-22 20:11:36 +08:00