Benedikt Kroll <benedikt.kr...@der-arbeitende.de> writes: > Hi, > > using a Python script as a Rewrite Map with MapType prg in Apache 2.4, I'm > having trouble > passing the value back to Apache. > > The log says "map lookup OK", but the value is empty. > > According to the Apache documentation > (https://httpd.apache.org/docs/current/rewrite/rewritemap.html#prg), the > script "should return one new-line terminated response string on STDOUT" > which is then used as the rewrite target. > > I have tried to do this using: > sys.stdout.write(newValue + "/n")
Should this not be "\n" rather than "/n"? > sys.stdout.flush() -- https://mail.python.org/mailman/listinfo/python-list