File: do-not-set-chartset-in-flask-responce.patch

package info (click to toggle)
keystone 2%3A27.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 13,296 kB
  • sloc: python: 124,343; pascal: 2,239; sh: 888; xml: 335; makefile: 216
file content (17 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Do not set charset in flask responce
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-01-22

Index: keystone/keystone/api/auth.py
===================================================================
--- keystone.orig/keystone/api/auth.py
+++ keystone/keystone/api/auth.py
@@ -111,7 +111,6 @@ class _AuthFederationWebSSOBase(ks_flask
         subs = {'host': host, 'token': token_id}
         body = src.substitute(subs)
         resp = flask.make_response(body, http.client.OK)
-        resp.charset = 'utf-8'
         resp.headers['Content-Type'] = 'text/html'
         return resp