Maybe there's a better way to do this. IMO it's generally frowned upon to modify global state like this.

Maybe you can override that value via some argument when you actually make the request.