1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Added exit codes for HTTP 3xx, 4xx, 5xx (3, 4, 5).

Also added `--ignore-http-status` to ensure 0 exit status.

HTTP 3xx result in 0 exit status when `--allow-redirects` is set.
This commit is contained in:
Jakub Roztocil
2012-07-23 19:35:44 +02:00
parent 0a673613ef
commit 0572158ba1
6 changed files with 123 additions and 13 deletions

View File

@@ -3,8 +3,9 @@
The main entry point. Invoke as `http' or `python -m httpie'.
"""
import sys
from .core import main
if __name__ == '__main__':
main()
sys.exit(main())