About the 401 problem... From this symfony bug http://trac.symfony-project.org/ticket/4474 and reading the http standard definition of the 401 status http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
I think we can safely remove the lines returning the 401 status as anyway it is a bad use of this status. That will solve your problem as well as some browser-specific problems we may get in the future.
About the 401 problem... From this symfony bug http:// trac.symfony- project. org/ticket/ 4474 and reading the http standard definition of the 401 status http:// www.w3. org/Protocols/ rfc2616/ rfc2616- sec10.html
I think we can safely remove the lines returning the 401 status as anyway it is a bad use of this status. That will solve your problem as well as some browser-specific problems we may get in the future.