diff --git a/0001-Fix-disabling-of-location-header-autocorrect-for-wer.patch b/0001-Fix-disabling-of-location-header-autocorrect-for-wer.patch index d821e7b..ef7886c 100644 --- a/0001-Fix-disabling-of-location-header-autocorrect-for-wer.patch +++ b/0001-Fix-disabling-of-location-header-autocorrect-for-wer.patch @@ -1,4 +1,4 @@ -From a948d7e98f19297b7f5dd8395d77cf696293a18c Mon Sep 17 00:00:00 2001 +From 06f390d522afb6d2d71bb601c2060a9fabe3f7de Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 19 Jul 2021 15:41:23 -0700 Subject: [PATCH] Fix disabling of location header autocorrect for werkzeug 2+ @@ -16,20 +16,20 @@ Signed-off-by: Adam Williamson 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/httpbin/core.py b/httpbin/core.py -index 305c988..0154464 100644 +index 66a2ed6..fd2842c 100644 --- a/httpbin/core.py +++ b/httpbin/core.py -@@ -29,7 +29,7 @@ from flask import ( +@@ -19,7 +19,7 @@ from flask import Flask, Response, request, render_template, redirect, jsonify a from six.moves import range as xrange from werkzeug.datastructures import WWWAuthenticate, MultiDict from werkzeug.http import http_date -from werkzeug.wrappers import BaseResponse +from werkzeug.wrappers import Response as WzResponse from werkzeug.http import parse_authorization_header - from flasgger import Swagger, NO_SANITIZER - -@@ -77,7 +77,9 @@ def jsonify(*args, **kwargs): + from raven.contrib.flask import Sentry +@@ -48,7 +48,9 @@ def jsonify(*args, **kwargs): + return response # Prevent WSGI from correcting the casing of the Location header -BaseResponse.autocorrect_location_header = False @@ -38,7 +38,7 @@ index 305c988..0154464 100644 + # Find the correct template folder when running from a different location - tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "templates") + tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') -- 2.36.0