rails/rails — comment on commit afde6fdd5ef3e6b0693a7e330777e85ef4cffddb
File: actionpack/lib/action_dispatch/middleware/request_id.rb line 23
By josevalim:

We could make it configurable. The header key could be a parameter given to the middleware on initialization here: https://github.com/rails/rails/commit/afde6fdd5ef3e6b0693a7e330777e85ef4cffddb#L11R167

The configuration name could be `config.action_dispatch.request_id_header` and the default could be set here:

https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/railtie.rb#L5

A patch with tests would be welcome.