Skip to content

Commit

Permalink
Use appropriate header for install as CA
Browse files Browse the repository at this point in the history
  • Loading branch information
yfdyh000 committed Mar 24, 2016
1 parent 05603f5 commit e55f8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gae_proxy/local/web_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ def req_download_cert_handler(self):
filename = cert_util.CertUtil.ca_keyfile
with open(filename, 'rb') as fp:
data = fp.read()
mimetype = 'application/octet-stream'
mimetype = 'application/x-x509-ca-cert'

self.wfile.write(('HTTP/1.1 200\r\nContent-Disposition: attachment; filename=CA.crt\r\nContent-Type: %s\r\nContent-Length: %s\r\n\r\n' % (mimetype, len(data))).encode())
self.wfile.write(('HTTP/1.1 200\r\nContent-Disposition: inline; filename=CA.crt\r\nContent-Type: %s\r\nContent-Length: %s\r\n\r\n' % (mimetype, len(data))).encode())
self.wfile.write(data)

def req_is_ready_handler(self):
Expand Down

0 comments on commit e55f8fa

Please sign in to comment.