1
0
mirror of https://github.com/httpie/cli.git synced 2025-02-19 19:00:14 +02:00
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
..
2018-11-02 16:23:17 +01:00
2017-12-28 18:15:17 +01:00
2018-11-14 16:36:47 +01:00
2016-10-26 11:53:01 +02:00
2018-11-02 16:23:17 +01:00
2017-12-28 18:03:37 +01:00
2019-07-17 23:02:49 -06:00
2019-06-24 12:29:42 +02:00
2019-07-17 23:02:49 -06:00
2016-03-02 02:53:23 +08:00
2017-12-28 18:03:37 +01:00