Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / net / data / websocket / set-hsts_wsh.py
blobc78a82ae92e8408058bf68c785184307714b4063
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Add a Strict-Transport-Security header to the response.
8 import json
11 def web_socket_do_extra_handshake(request):
12 request.extra_headers.append(
13 ('Strict-Transport-Security', 'max-age=3600'))
14 pass
17 def web_socket_transfer_data(request):
18 # Wait for closing handshake
19 request.ws_stream.receive_message()