1. Jason R. Coombs
  2. jaraco.net

Commits

Jason R. Coombs  committed 6d1be98

Save content in binary form

  • Participants
  • Parent commits 373e431
  • Branches default

Comments (0)

Files changed (1)

File jaraco/net/http/servers.py

View file
 		p.add_argument('-t', '--timeout', type=int, help="Socket timeout",
 			default=3)
 		p.add_argument('-o', '--outfile', default=sys.stdout,
-			type=functools.partial(open, mode='w'), help='save output to file',
+			type=functools.partial(open, mode='wb'), help='save output to file',
 		)
 		seconds = lambda seconds: datetime.timedelta(seconds=seconds)
 		p.add_argument('-d', '--delay', dest='response_delay', type=seconds,