(headers)
| 21 | |
| 22 | |
| 23 | def observe(headers): |
| 24 | |
| 25 | seen = False |
| 26 | for h in headers.items(): |
| 27 | if h[0] == "X-Au-Test": |
| 28 | log.write("X-Au-Test: {}\n".format(h[1])) |
| 29 | |
| 30 | if h[0] == "Accept-Encoding": |
| 31 | log.write("{}\n".format(h[1])) |
| 32 | seen = True |
| 33 | |
| 34 | if not seen: |
| 35 | log.write("ACCEPT-ENCODING MISSING\n") |
| 36 | |
| 37 | log.write("-\n") |
| 38 | log.flush() |
| 39 | |
| 40 | |
| 41 | Hooks.register(Hooks.ReadRequestHook, observe) |