Bug 1068602 — Fix 500 on res.headers["www-authenticate"]

https://bugzilla.mozilla.org/show_bug.cgi?id=1068602
what are we replacing exactly here?