Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3:Update
python-flask-restplus
001-Fix-content-type-assertion-for-werkzeug-1.0...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 001-Fix-content-type-assertion-for-werkzeug-1.0.patch of Package python-flask-restplus
From b05250604646754b3b812b8b1ee9e0260fbb3ade Mon Sep 17 00:00:00 2001 From: czerw <petr@cervinka.net> Date: Wed, 22 Apr 2020 18:36:32 +0200 Subject: [PATCH] Fix content type assertion for werkzeug 1.0 Werkzeug 1.0 changed content type to include "charset=utf-8". --- tests/test_errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index a4be922..61bafaa 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -386,7 +386,7 @@ class ErrorsTest(object): response = client.get("/foo") assert response.status_code == 404 - assert response.headers['Content-Type'] == 'text/html' + assert response.headers['Content-Type'] == 'text/html; charset=utf-8' def test_non_api_error_404_catchall(self, app, client): api = restplus.Api(app, catch_all_404s=True) -- 2.26.0
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