Closed Bug 438471 Opened 16 years ago Closed 14 years ago

getResponseHeader returns undefined for a "header" whose value is a blank string

Categories

(Firefox :: General, defect)

2.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: hranavat, Unassigned)

Details

(Whiteboard: [CLOSEME 2010-10-01])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

Steps to repro:

1. From the server side send a header in the response containing a blank value. the back end I use is Java 5 based, JSP, Struts 2.0 and Tomcat 6.0. I am also using Ajax via Yahoo user Interface.

2. try to execute JS method getResponseHeader("aboveheadername") on xmlhttprequest obj and check out the value in console (firebug) or an alert stmt. it appears as undefined. the header exists and its actual value i.e is a blank should be shown.

Reproducible: Always

Steps to Reproduce:
1.see details
2.
3.
Actual Results:  
getResponseHeader returns undefined

Expected Results:  
a blank string
In fact as the above link suggests, getRespHeader must return null for the value of a header that does not exist, instead it seems to be returning undefined. this method is wrongly implemented
Reporter, are you still seeing this issue with Firefox 3.6.9 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-10-01]
Version: unspecified → 2.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.10 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.