Date: Wednesday, November 16, 2022 @ 15:53:56
  Author: yan12125
Revision: 1349198

upgpkg: httpbin 0.7.0-11; update the patch

To fix the issue mentioned at
https://github.com/postmanlabs/httpbin/pull/674#issuecomment-1247401683

Modified:
  httpbin/trunk/PKGBUILD
  httpbin/trunk/httpbin-werkzeug-2.1.0.patch

------------------------------+
 PKGBUILD                     |    8 ++++----
 httpbin-werkzeug-2.1.0.patch |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-16 15:49:07 UTC (rev 1349197)
+++ PKGBUILD    2022-11-16 15:53:56 UTC (rev 1349198)
@@ -2,7 +2,7 @@
 
 pkgname=httpbin
 pkgver=0.7.0
-pkgrel=10
+pkgrel=11
 pkgdesc="HTTP Request and Response Service"
 arch=('any')
 url="https://github.com/requests/httpbin";
@@ -16,14 +16,14 @@
         remove-raven.patch)
 
sha512sums=('faec48a0a2ac8800293b10281966a28195884ad2f69f0f28f1b8c8e1a7bfd8933ebbc9b541c80cdc19e1031a8ba9383afe8e372b9044436cb307dd1e8eddaae7'
             
'3c058ca5f685e281f7d60216de844e58727e7677766660df410ec57d8c985485cf611ec64eb71a234bdd49b4fdf66be6138d4bb7258d9e6d0346d6c6ee9f3cdf'
-            
'3d9ed7ab76dc0a33d69cf973e16be7358daa0af0a48d5ac24e0ad6ea8d73a68a796b4c8526ad764c0ed09997448f744f205b909261c32405ff166b359be1fb8b'
+            
'297902e60a529ad9b7c3ad1cc36a2c958505a0a15bc1e0210cb365a6a4d9dffcde793dad0b426ab14b0f312cd3d9fa34a6662040d665dd5177376a8583945789'
             
'757db19d3ded4806423f3361b5d30c962d8a72a9b3bf6afb26770f3fc56c14554c8fc6aa1a6ce72328fd8c77c330c5d0d05478d345c287f07e22302ccf1ec8d3')
 
 prepare() {
   cd httpbin-$pkgver
   patch -p1 -i ../httpbin-werkzeug-0.15.1.patch
-  # patch taken from 
https://github.com/maximino-dev/httpbin/commit/5cc81ce87a3c447a127e4a1a707faf9f3b1c9b6b,
-  # which is the first version of 
https://github.com/postmanlabs/httpbin/pull/674
+  # patch taken from 
https://github.com/maximino-dev/httpbin/commit/651c03a73072b9f399bbb80741ab473fc8b0adbb,
+  # which is the latest version of 
https://github.com/postmanlabs/httpbin/pull/674 as of 2022/11/13
   patch -p1 -i ../httpbin-werkzeug-2.1.0.patch
   # raven is unmaintained and httpbin removed it already, but no release was 
made
   patch -p1 -i ../remove-raven.patch

Modified: httpbin-werkzeug-2.1.0.patch
===================================================================
--- httpbin-werkzeug-2.1.0.patch        2022-11-16 15:49:07 UTC (rev 1349197)
+++ httpbin-werkzeug-2.1.0.patch        2022-11-16 15:53:56 UTC (rev 1349198)
@@ -1,4 +1,4 @@
-From 5cc81ce87a3c447a127e4a1a707faf9f3b1c9b6b Mon Sep 17 00:00:00 2001
+From 651c03a73072b9f399bbb80741ab473fc8b0adbb Mon Sep 17 00:00:00 2001
 From: Maximino BOGADO <[email protected]>
 Date: Wed, 30 Mar 2022 16:26:31 +0200
 Subject: [PATCH] Replace BaseResponse to Response class (new werkzeug version
@@ -9,7 +9,7 @@
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/httpbin/core.py b/httpbin/core.py
-index 305c9882..2bad408e 100644
+index 305c9882..ef694f62 100644
 --- a/httpbin/core.py
 +++ b/httpbin/core.py
 @@ -29,7 +29,7 @@
@@ -17,7 +17,7 @@
  from werkzeug.datastructures import WWWAuthenticate, MultiDict
  from werkzeug.http import http_date
 -from werkzeug.wrappers import BaseResponse
-+from werkzeug.wrappers import Response
++from werkzeug.wrappers import Response as WzResponse
  from werkzeug.http import parse_authorization_header
  from flasgger import Swagger, NO_SANITIZER
  
@@ -26,7 +26,7 @@
  
  # Prevent WSGI from correcting the casing of the Location header
 -BaseResponse.autocorrect_location_header = False
-+Response.autocorrect_location_header = False
++WzResponse.autocorrect_location_header = False
  
  # Find the correct template folder when running from a different location
  tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 
"templates")

Reply via email to