uhttpmock: update to 0.11.0

This commit is contained in:
cinerea0 2024-06-25 19:01:03 -04:00 committed by cinerea0
parent c9080fbf7a
commit bb3d5a0b62
2 changed files with 3 additions and 40 deletions

View File

@ -1,37 +0,0 @@
From 46e86c50044e07c7427233495c0c21adfdb47891 Mon Sep 17 00:00:00 2001
From: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
Date: Fri, 8 Mar 2024 19:58:43 +0100
Subject: [PATCH] Add HTTP/2 support
---
libuhttpmock/uhm-server.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libuhttpmock/uhm-server.c b/libuhttpmock/uhm-server.c
index 4451a91..da5d3a5 100644
--- a/libuhttpmock/uhm-server.c
+++ b/libuhttpmock/uhm-server.c
@@ -873,6 +873,9 @@ trace_to_soup_message (const gchar *trace, GUri *base_uri)
} else if (strncmp (trace, "HTTP/1.0", strlen ("HTTP/1.0")) == 0) {
http_version = SOUP_HTTP_1_0;
trace += strlen ("HTTP/1.0");
+ } else if (strncmp (trace, "HTTP/2", strlen ("HTTP/2")) == 0) {
+ http_version = SOUP_HTTP_2_0;
+ trace += strlen ("HTTP/2");
} else {
g_warning ("Unrecognised HTTP version %s.", trace);
http_version = SOUP_HTTP_1_1;
@@ -914,6 +917,9 @@ trace_to_soup_message (const gchar *trace, GUri *base_uri)
} else if (strncmp (trace, "HTTP/1.0", strlen ("HTTP/1.0")) == 0) {
http_version = SOUP_HTTP_1_0;
trace += strlen ("HTTP/1.0");
+ } else if (strncmp (trace, "HTTP/2", strlen ("HTTP/2")) == 0) {
+ http_version = SOUP_HTTP_2_0;
+ trace += strlen ("HTTP/2");
} else {
g_warning ("Unrecognised HTTP version %s.", trace);
}
--
GitLab

View File

@ -1,7 +1,7 @@
# Template file for 'uhttpmock'
pkgname=uhttpmock
version=0.10.0
revision=2
version=0.11.0
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gtk_doc gtk_doc)"
@ -13,7 +13,7 @@ license="LGPL-2.1-or-later"
homepage="https://gitlab.freedesktop.org/pwithnall/uhttpmock/"
changelog="https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/raw/main/NEWS"
distfiles="https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/archive/${version}/uhttpmock-${version}.tar.gz"
checksum=a4294a9e0f0c619957cefc34e55561990519c25468f07cb7c4e5aa7368ef840b
checksum=453f7cc20ca90c5214e4d2f3e77cbeaa6d6fb0f69b7bdbf39050cb69a6e09a19
build_options="gtk_doc"