1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00
httpie-cli/httpie
Michael Sloan c5ca9d248e Allow stdin to be a closed fd
Before this change, the following invocation would not work

```
$ http http://neverhttps.com <&-
```

The "<&-" at the end closes the stdin fd. Specifically, it would fail with

```
  ...
  File "/home/mgsloan/.local/lib/python3.6/site-packages/httpie/context.py", line 26, in Environment
    stdin_isatty = stdin.isatty()
AttributeError: 'NoneType' object has no attribute 'isatty'
```

This can occur when httpie is being programmatically invoked, and may
as well be supported.
2019-07-17 23:02:49 -06:00
..
output Cleanup 2018-11-02 16:23:17 +01:00
plugins Start using dict comprehensions 2017-12-28 18:15:17 +01:00
__init__.py 1.0.3-dev 2018-11-14 16:36:47 +01:00
__main__.py Exit with status 130 on CTRL-C 2016-10-26 11:53:01 +02:00
cli.py Cleanup 2018-11-02 16:23:17 +01:00
client.py Make default HTTP headers case-insensitive 2018-02-22 12:52:57 +01:00
compat.py Removed Python 2.6 support 2017-12-28 18:03:37 +01:00
config.py Fix some broken documentation links (#703) 2018-09-07 19:10:04 +02:00
context.py Allow stdin to be a closed fd 2019-07-17 23:02:49 -06:00
core.py exit 0 constant: OK => SUCCESS to avoid confusion w/ HTTP 200 OK 2018-11-02 16:07:39 +01:00
downloads.py Fix comments 2019-06-24 12:29:42 +02:00
input.py Allow stdin to be a closed fd 2019-07-17 23:02:49 -06:00
models.py Cleanup 2016-03-02 02:53:23 +08:00
sessions.py Fix some broken documentation links (#703) 2018-09-07 19:10:04 +02:00
utils.py Removed Python 2.6 support 2017-12-28 18:03:37 +01:00