views:

29

answers:

1

Hi,

On my current project, custom http header variable need to be set while redirecting for http basic auth. Can I instruct redirect_to for custom headers ?

Thanks.

+1  A: 

The request object's headers method can be used to set custom HTTP headers within a controller:

request.headers['foo'] = 'bar'
John Topley