summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libsoup/soup-session.c5
-rw-r--r--tests/http2-test.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 80a1bb0a..f2ac9876 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -1788,8 +1788,9 @@ get_connection_for_host (SoupSession *session,
return conn;
}
- force_http1 = soup_message_get_force_http1 (item->msg);
- if (g_getenv ("SOUP_FORCE_HTTP1"))
+ if (g_getenv ("SOUP_ENABLE_HTTP2"))
+ force_http1 = soup_message_get_force_http1 (item->msg);
+ else
force_http1 = TRUE;
for (conns = host->connections; conns; conns = conns->next) {
diff --git a/tests/http2-test.c b/tests/http2-test.c
index f7828bfc..d5c75c43 100644
--- a/tests/http2-test.c
+++ b/tests/http2-test.c
@@ -561,6 +561,8 @@ main (int argc, char **argv)
return 1;
}
+ g_setenv ("SOUP_ENABLE_HTTP2", "1", TRUE);
+
g_test_add ("/http2/basic/async", Test, NULL,
setup_session,
do_basic_async_test,