My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 497: Content-Disposition header being lowercased
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----

Sign in to add a comment
Project Member Reported by, May 15, 2008
 The following code snippet:

  var request = google.gears.factory.create('beta.httprequest');
  request.onreadystatechange = this.onStateChange.bind(this,
                                                       onComplete);'POST', this.url_ + up.UPLOAD_PATH);
  request.setRequestHeader('Content-Disposition', 'attachment; filename="' +
                           this.sessionId_ + '"');
  request.setRequestHeader('Content-Type', 'application/octet-stream');
  request.setRequestHeader('Content-Range', 'bytes ' + range);
  return request.send(data);

Is resulting in the following HTTP request:

  POST /upload HTTP/1.1
  User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:
Gecko/20080417 Firefox/
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  content-disposition: attachment; filename="42fd8f6d60e1fc7c:76a794b33e6dff0b"
  Content-Type: application/octet-stream
  Content-Range: bytes 0-330/676

Note that Content-Disposition was set in uppercase, but transmitted in

May 15, 2008
Project Member #1
It makes sense to preserve the case of the string a caller passes in.

Michael, any ideas why this this happening?  Was there another reason for normalizing
setRequestHeader() arguments?
Labels: -Priority-Medium Version-0.4
Jul 22, 2008
Project Member #2
(No comment was entered for this change.)
Jul 23, 2008
Project Member #3
Charles says this isn't blocking him, and it can happen after the 0.4 release.
Labels: -Version-0.4 Version-later
Jul 23, 2008
Project Member #4
(No comment was entered for this change.)
Owner: ---
Sep 16, 2008
Project Member #5
(No comment was entered for this change.)
Labels: Component-HttpRequest
Sign in to add a comment

Powered by Google Project Hosting