commit | ade620ca3594a8e09c82076ae38f920a1392202e | [log] [download] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Wed Aug 27 15:52:08 2014 -0700 |
committer | Shawn Pearce <sop@google.com> | Wed Aug 27 15:52:08 2014 -0700 |
tree | 25b8978105800f1126947769c089e562959ebbf5 | |
parent | 4c2eb85edfcfbc57c0243744f206690116c1f84c [diff] |
Set Content-Type header for ?format=TEXT content replies on paths HTTP servers should always send a Content-Type response header to prevent browsers from entering into (a possibly stupid) sniffing mode. Since the payload is wrapped up in base64 this is really a text/plain reply. Using the two-arg form of startRenderText() will send a text/plain Content-Type, which is exactly correct here. Change-Id: I194a1446c62e4409c27e8fc72aa43846ea3438a9