Commit Graph

1018 Commits

Author SHA1 Message Date
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
Jakub Roztocil
fd6e87914c README 2019-06-24 12:36:08 +02:00
Jakub Roztocil
6dee49357d Fix comments 2019-06-24 12:29:42 +02:00
Jakub Roztocil
df36d6255d Changed the way the output filename is generated
When ``--download`` without ``--output`` results in a redirect,
now only the initial URL is considered, not the final one.
2019-06-24 12:20:09 +02:00
Jakub Roztocil
e92b831e6e
Create FUNDING.yml 2019-06-23 12:05:24 +02:00
Harkirat Singh
fd44f1af93 Updated Readme to fix a typo (#767) 2019-04-10 13:21:37 +02:00
Jakub Roztocil
b6309547d5 Add a bash here string example 2019-03-11 08:41:24 +01:00
Mickaël Schoentgen
3a46149de1 Fix several ResourceWarning: unclosed file (#741)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-02-04 10:00:30 +01:00
Jakub Roztocil
b7c8bf0800 Add animation by @loranallensmith 2019-02-03 15:27:17 +01:00
Jakub Roztocil
69d010a11b Brew cleanup 2019-02-03 15:08:29 +01:00
Jakub Roztocil
42ff243400 Add make brew-test 2019-02-03 14:58:23 +01:00
Jakub Roztocil
933b438e5f Bump dependency versions #742 2019-02-03 14:26:05 +01:00
Jakub Roztočil
358342d1c9
Update LICENSE 2019-01-09 12:30:44 +01:00
Jakub Roztocil
c591a3810d 1.0.3-dev 2018-11-14 16:36:47 +01:00
Jakub Roztocil
0eba037037 v1.0.2
Close #729
2018-11-14 16:36:19 +01:00
Jakub Roztocil
3898129e9c Changelog 2018-11-14 16:22:00 +01:00
Jakub Roztocil
b88e88d2e3 Fix tests for installation with pyOpenSSL #729 2018-11-14 16:10:08 +01:00
Jakub Roztocil
d1407baf76 Add make pdf 2018-11-14 13:06:10 +01:00
Jakub Roztocil
d5032ca859 Fix changelog 2018-11-14 11:45:57 +01:00
Jakub Roztocil
f6a19cf552 Don't call external URLs from tests #729 2018-11-14 11:42:59 +01:00
Jakub Roztocil
74979f3b33 Brew 2018-11-06 11:37:33 +01:00
Jakub Roztocil
698eb51e60 Update screenshot 2018-11-03 18:08:43 +01:00
Jakub Roztocil
ae8030c930 Homebrew formula for v1.0.0 2018-11-02 17:18:04 +01:00
Jakub Roztočil
2e96d7ffbb
Update CHANGELOG.rst 2018-11-02 16:28:17 +01:00
Jakub Roztocil
b5625e3d75 v1.0.0 2018-11-02 16:24:35 +01:00
Jakub Roztocil
932d3224f4 Cleanup 2018-11-02 16:23:17 +01:00
Jakub Roztocil
b596fedf13 exit 0 constant: OK => SUCCESS to avoid confusion w/ HTTP 200 OK 2018-11-02 16:07:39 +01:00
Jakub Roztocil
96444f3345 Changelog 2018-11-02 15:13:53 +01:00
Jakub Roztocil
89b66f1608 Merge remote-tracking branch 'origin/master' 2018-11-02 14:58:08 +01:00
Vladimir Berkutov
a7d570916d #722: Add support for tls1.3 (#724)
* #722: Add support for tls1.3

* #722: Document the potential support for tls1.3
2018-11-02 14:57:53 +01:00
Jakub Roztocil
ab5a50cee8 Finish --style=auto for terminal ANSI colors and make it the default.
Previously (only in the development version), this was called 'preset'.
2018-11-02 14:53:05 +01:00
Ankit R. Gadiya
91961c6b51 Fixed some lines (#723) 2018-10-31 19:17:44 +01:00
Matúš Ferech
256ea7d49d Add prog parameter to HTTPieArgumentParser (#715) 2018-10-30 18:41:56 +01:00
Matthew Leather
2cd6ea3050 Fix some broken documentation links (#703) 2018-09-07 19:10:04 +02:00
Matthew Leather
37dddf5bf7 Fix for broken Travis builds on macOS with Python 3.7 (#704) (#705) 2018-09-07 19:09:30 +02:00
Matthew Leather
e508c631f2 Fix Tox using different Python than expected on macOS (#688) (#706) 2018-09-07 19:08:37 +02:00
0xflotus
55530c8c6d fixed output for escaping rules (#700) 2018-09-03 20:04:18 +02:00
cclauss
eb929cbc04 Travis CI: Add Python 3.7 on linux to the testing (#690)
* Travis CI: Add Python 3.7 on linux to the testing

`sudo: true` and `dist: xenial` are currently required https://github.com/travis-ci/travis-ci/issues/9069

* NEWEST_PYTHON=3.7
2018-07-25 14:02:00 +02:00
Jakub Roztočil
2490bb25ca
Add v 0.9.9 CHANGELOG link 2018-07-22 17:58:52 +02:00
Jakub Roztočil
2038fa02e3
Mention v0.9.9 in CHANGELOG
#620
2018-07-22 17:57:52 +02:00
Jakub Roztocil
59d51ad513 Travis 2018-07-12 21:52:01 +02:00
Jakub Roztocil
61568f1def Travis 2018-07-12 21:46:00 +02:00
Jakub Roztocil
f93f4fa7c7 Travis CI Python versions; install fix 2018-07-12 21:33:12 +02:00
Jakub Roztocil
bf73b5701e Fix travis.yml syntax 2018-07-12 21:23:32 +02:00
Jakub Roztocil
7917f1b40c Build fixes and clean-up
* reflect Python 3.7 release
* fix `pycodestyle` errors
* update `pycodestyle` config
* move `pytest` and `pycodestyle` config to `setup.cfg`
* add `make pycodestyle`
* add `make coveralls`
* etc.
2018-07-12 21:16:16 +02:00
Jakub Roztocil
a50660cc70 Test --timeout with longer delay
test_timeout_exit_status fails on Python 2.7
https://travis-ci.org/jakubroztocil/httpie/jobs/390072675#L325
2018-07-12 00:39:31 +02:00
Jakub Roztocil
749b1e2aca Fix pytest configuration 2018-06-09 11:59:34 +02:00
Jakub Roztocil
137889a267 Doc improvements 2018-05-30 14:07:52 +02:00
Jakub Roztocil
c9c6f0fae5 Formatting 2018-05-30 14:02:46 +02:00
Jakub Roztocil
6fd1ea0e5a Section ordering 2018-05-30 13:56:35 +02:00