Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 3537d49

Browse files
yan12125svntogit
authored andcommitted
upgpkg: httpbin 0.7.0-11; update the patch
To fix the issue mentioned at postmanlabs/httpbin#674 (comment) git-svn-id: file:///srv/repos/svn-community/svn@1349198 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent ad5fd00 commit 3537d49

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

trunk/PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pkgname=httpbin
44
pkgver=0.7.0
5-
pkgrel=10
5+
pkgrel=11
66
pkgdesc="HTTP Request and Response Service"
77
arch=('any')
88
url="https://github.com/requests/httpbin"
@@ -16,14 +16,14 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/requests/httpbin/archive/v$
1616
remove-raven.patch)
1717
sha512sums=('faec48a0a2ac8800293b10281966a28195884ad2f69f0f28f1b8c8e1a7bfd8933ebbc9b541c80cdc19e1031a8ba9383afe8e372b9044436cb307dd1e8eddaae7'
1818
'3c058ca5f685e281f7d60216de844e58727e7677766660df410ec57d8c985485cf611ec64eb71a234bdd49b4fdf66be6138d4bb7258d9e6d0346d6c6ee9f3cdf'
19-
'3d9ed7ab76dc0a33d69cf973e16be7358daa0af0a48d5ac24e0ad6ea8d73a68a796b4c8526ad764c0ed09997448f744f205b909261c32405ff166b359be1fb8b'
19+
'297902e60a529ad9b7c3ad1cc36a2c958505a0a15bc1e0210cb365a6a4d9dffcde793dad0b426ab14b0f312cd3d9fa34a6662040d665dd5177376a8583945789'
2020
'757db19d3ded4806423f3361b5d30c962d8a72a9b3bf6afb26770f3fc56c14554c8fc6aa1a6ce72328fd8c77c330c5d0d05478d345c287f07e22302ccf1ec8d3')
2121

2222
prepare() {
2323
cd httpbin-$pkgver
2424
patch -p1 -i ../httpbin-werkzeug-0.15.1.patch
25-
# patch taken from https://github.com/maximino-dev/httpbin/commit/5cc81ce87a3c447a127e4a1a707faf9f3b1c9b6b,
26-
# which is the first version of https://github.com/postmanlabs/httpbin/pull/674
25+
# patch taken from https://github.com/maximino-dev/httpbin/commit/651c03a73072b9f399bbb80741ab473fc8b0adbb,
26+
# which is the latest version of https://github.com/postmanlabs/httpbin/pull/674 as of 2022/11/13
2727
patch -p1 -i ../httpbin-werkzeug-2.1.0.patch
2828
# raven is unmaintained and httpbin removed it already, but no release was made
2929
patch -p1 -i ../remove-raven.patch

trunk/httpbin-werkzeug-2.1.0.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 5cc81ce87a3c447a127e4a1a707faf9f3b1c9b6b Mon Sep 17 00:00:00 2001
1+
From 651c03a73072b9f399bbb80741ab473fc8b0adbb Mon Sep 17 00:00:00 2001
22
From: Maximino BOGADO <[email protected]>
33
Date: Wed, 30 Mar 2022 16:26:31 +0200
44
Subject: [PATCH] Replace BaseResponse to Response class (new werkzeug version
@@ -9,15 +9,15 @@ Subject: [PATCH] Replace BaseResponse to Response class (new werkzeug version
99
1 file changed, 2 insertions(+), 2 deletions(-)
1010

1111
diff --git a/httpbin/core.py b/httpbin/core.py
12-
index 305c9882..2bad408e 100644
12+
index 305c9882..ef694f62 100644
1313
--- a/httpbin/core.py
1414
+++ b/httpbin/core.py
1515
@@ -29,7 +29,7 @@
1616
from six.moves import range as xrange
1717
from werkzeug.datastructures import WWWAuthenticate, MultiDict
1818
from werkzeug.http import http_date
1919
-from werkzeug.wrappers import BaseResponse
20-
+from werkzeug.wrappers import Response
20+
+from werkzeug.wrappers import Response as WzResponse
2121
from werkzeug.http import parse_authorization_header
2222
from flasgger import Swagger, NO_SANITIZER
2323

@@ -26,7 +26,7 @@ index 305c9882..2bad408e 100644
2626

2727
# Prevent WSGI from correcting the casing of the Location header
2828
-BaseResponse.autocorrect_location_header = False
29-
+Response.autocorrect_location_header = False
29+
+WzResponse.autocorrect_location_header = False
3030

3131
# Find the correct template folder when running from a different location
3232
tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "templates")

0 commit comments

Comments
 (0)