Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Snapshots:2021.09
cobbler
fix-trail-stripping-utf8.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-trail-stripping-utf8.diff of Package cobbler
From c622e7416c92dea63a0178ce586e44244866877c Mon Sep 17 00:00:00 2001 From: Victor Zhestkov <vzhestkov@suse.com> Date: Thu, 6 May 2021 10:59:02 +0300 Subject: [PATCH] Fix trail stripping in case of using UTF symbols --- svc/services.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svc/services.py b/svc/services.py index dcfbac119e..b217e6ee8d 100644 --- a/svc/services.py +++ b/svc/services.py @@ -115,9 +115,11 @@ def application(environ, start_response): status = "500 SERVER ERROR" content = err.faultString + content = content.encode('utf-8') + # req.content_type = "text/plain;charset=utf-8" response_headers = [('Content-type', 'text/plain;charset=utf-8'), ('Content-Length', str(len(content)))] start_response(status, response_headers) - return [content.encode('utf-8')] + return [content]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor