Skip to content

Commit 031f4a4

Browse files
committed
Adjust http2 examples to use new :http-versions option
1 parent 621ecb4 commit 031f4a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/src/aleph/examples/http2.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
(def s (http/start-server hello-world-handler
4747
{:port 443
48+
:http-versions [:http2 :http1]
4849
:ssl-context http2-ssl-ctx}))
4950

5051
;; ## Clients
@@ -79,6 +80,7 @@
7980
;; server
8081
(def s (http/start-server hello-world-handler
8182
{:port 443
83+
:http-versions [:http2 :http1]
8284
:ssl-context http2-ssl-ctx
8385
:compression? true}))
8486

0 commit comments

Comments
 (0)