# HG changeset patch # User Henry S. Thompson # Date 1781969986 -3600 # Node ID 531a857064854eb4908586be84ccbd2bc6dbd611 # Parent 4eda36618ca246bfb94fb9c64e07b146dd37f1c8 use USER in tmpfile creation, output newline after header dict if it's the last one diff -r 4eda36618ca2 -r 531a85706485 lib/python/cc/ix.py --- a/lib/python/cc/ix.py Sat Jun 20 15:03:12 2026 +0100 +++ b/lib/python/cc/ix.py Sat Jun 20 16:39:46 2026 +0100 @@ -47,7 +47,7 @@ def process0(options,buf,filename,offset,length,whole): global TMPFILENAME, TMPFILE if options.save: - (tf,TMPFILENAME)=tempfile.mkstemp() + (tf,TMPFILENAME)=tempfile.mkstemp(dir="/tmp/"+(os.getenv('USER') or 'xyzzy')) TMPFILE=open(tf,mode='wb') if options.cmd and not options.process: launch(options.cmd) @@ -196,6 +196,8 @@ # Blank line, HTTP header is finished if isinstance(options.headers,dict): _output(bytes(str(options.headers),'utf-8')) + if not options.body: + _output(b'\n') if not options.body: return if options.headers: