Commit Graph

89 Commits (430c785feb715797d99986f1806467cb237ccf68)

Author SHA1 Message Date
Sheng d0542e72c6 Fixed test_get_redirect_url
6 years ago
Sheng 8e4039a24a Support redirecting http to https
6 years ago
Sheng 40cf1095ff Use open_to_public to store the status of the http(s) server
6 years ago
Sheng e31e9be433 Updated get_trusted_downstream
6 years ago
Sheng 1f835f5a70 Refactored handler.py
6 years ago
Sheng 68468585ee Added a command line option xheaders
6 years ago
Sheng a8a444d7ed Always reset fbidhttp to False if not open to public
6 years ago
Sheng 5d6f92e529 Move some config variables to handler.py
6 years ago
Sheng c06bf5311a Added an option for blocking public non-https requests
6 years ago
Sheng c2c81aaeae Use method initialize to deny forbidden acesss
6 years ago
Sheng 7e5a170383 Added head method IndexHandler
6 years ago
Sheng a68eff592f Added attribute custom_headers to MixinHandler
6 years ago
Sheng af60cd1cd5 Tested app with 403 and 404 requests
6 years ago
Sheng e94c846379 Added default handler NotFoundHandler
6 years ago
Sheng 499f3b6dcd Lowercase all option names
6 years ago
Sheng 12f4c0d0d2 Pass server settings for test
6 years ago
Sheng 77b6fbfd85 Block requests not come from trusted_downstream and public non-https requests
6 years ago
Sheng db3ee2b784 Added proxies option for trusted downstream
6 years ago
Sheng bb9d193cae Fixed assertion in rasied exception context
6 years ago
Sheng 827a0d8a9d Support https server
6 years ago
Sheng 66ebe2ceb2 Use general method to validate ipaddress
6 years ago
Sheng 656e2ff028 Tested default port
6 years ago
Sheng 0c9db2abaf Set default port 22 on server side
6 years ago
Sheng f6d2776a20 Let tornado parse xheaders
6 years ago
Sheng 88405eddac Added to_int to utils
6 years ago
Sheng 33703f0ca3 Updated lookup_hostname
6 years ago
Sheng a576a41ea4 Lookup hostname before connection under reject policy
6 years ago
Sheng 90e7ea0327 Fixed test_print_version
6 years ago
Sheng 2adcf93362 Updated tests/utils.py
6 years ago
Sheng 1a7c395c75 Updated requirements.txt
6 years ago
Sheng b3c33ff6bd Use form attribute novalidate for debug mode
6 years ago
Sheng b372fcbbb2 Pass None for empty password
6 years ago
Sheng 5f3641701e Increase buffer size for channel
6 years ago
Sheng f4351318ec Updated tests
6 years ago
Sheng fa717491cd Updated test_server_error
6 years ago
Sheng 6cfd981e80 Tested server error
6 years ago
Sheng ad12876b0c Strip encoding
6 years ago
Sheng 58feb5e76b Enable xsrf for testing
6 years ago
Sheng 688ca78bb2 Use command "locale charmap" to detect encoding
6 years ago
Sheng 80bdddc280 Added setting swallow_http_errors
6 years ago
Sheng e1fbc417fd Added test for bad authentication type
6 years ago
Sheng 1a3880ecee Raise InvalidException for empty required value
6 years ago
Sheng 5519a17016 Return 400 http error for invalid post requests
6 years ago
Sheng df26d0e677 Catch ValueError instead of Exception for post method
6 years ago
Sheng 48acf09f21 Move method get_value to MixinHandler
6 years ago
Sheng f3d9d297bb Updated tests
6 years ago
Sheng 757702127a Move all tests data into a separate directory
6 years ago
Sheng 4710d8c0e6 Added connect_with_options function
6 years ago
Sheng 2e34702988 Changed validation error messages
6 years ago
Sheng 3c139e05f8 Added KEY_MAX_SIZE to validate the private key
6 years ago