Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5606 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

The "connection:close" header isn't necessary in Firefox 1.5+

Reported by: rahman.roman@gmail.com Assigned to: sam
Priority: normal Milestone:
Component: Prototype Version:
Severity: normal Keywords:
Cc:

Description

Bug #246651 in Gecko is already fixed. I guess it shouldn't send header "connection:close" for the new revisions. It's impossible to use keep-alive conection with current workaround.

Change History

11/04/06 20:38:10 changed by mislav

Good catch! I'll try and fix this while I'm patching ajax.js

02/07/07 02:07:44 changed by mislav

  • status changed from new to closed.
  • resolution set to fixed.

this has been fixed for the 1.5 release

/* Force "Connection: close" for older Mozilla browsers to work
 * around a bug where XMLHttpRequest sends an incorrect
 * Content-length header. See Mozilla Bugzilla #246651. 
 */
if (this.transport.overrideMimeType &&
  (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005)
     headers['Connection'] = 'close';