Set the original request in thread local so other functions have access to it.