diff --git a/AUTHORS.rst b/AUTHORS.rst index 1d7437d6..684fe8be 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -33,3 +33,4 @@ Patches and ideas * `Matthias Lehmann `_ * `Dennis Brakhane `_ * `Matt Layman `_ +* `Edward Yang `_ diff --git a/httpie/input.py b/httpie/input.py index da3cc525..4d8af82e 100644 --- a/httpie/input.py +++ b/httpie/input.py @@ -378,7 +378,8 @@ class Parser(ArgumentParser): if self.args.prettify == PRETTY_STDOUT_TTY_ONLY: self.args.prettify = PRETTY_MAP[ 'all' if self.env.stdout_isatty else 'none'] - elif self.args.prettify and self.env.is_windows: + elif (self.args.prettify and self.env.is_windows and + self.args.output_file): self.error('Only terminal output can be colorized on Windows.') else: # noinspection PyTypeChecker