Browse Source

Add hints on how to use HTTP/2 to the demo

Brad Fitzpatrick 11 years ago
parent
commit
864937f5e6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      h2demo/h2demo.go

+ 5 - 1
h2demo/h2demo.go

@@ -44,7 +44,11 @@ func homeOldHTTP(w http.ResponseWriter, r *http.Request) {
 <body>
 <body>
 <h1>Go + HTTP/2</h1>
 <h1>Go + HTTP/2</h1>
 <p>Welcome to <a href="https://golang.org/">the Go language</a>'s <a href="https://http2.github.io/">HTTP/2</a> demo & interop server.</p>
 <p>Welcome to <a href="https://golang.org/">the Go language</a>'s <a href="https://http2.github.io/">HTTP/2</a> demo & interop server.</p>
-<p>Unfortunately, you're <b>not</b> using HTTP/2 right now.</p>
+<p>Unfortunately, you're <b>not</b> using HTTP/2 right now. To do so:</p>
+<ul>
+   <li>Use Firefox Nightly or go to <b>about:config</b> and enable "network.http.spdy.enabled.http2draft"</li>
+   <li>Use Google Chrome Canary and/or <a href="chrome://flags/#enable-spdy4">Enable SPDY/4</a> (Chrome's name for HTTP/2)</li>
+</ul>
 <p>See code & instructions for connecting at <a href="https://github.com/bradfitz/http2">https://github.com/bradfitz/http2</a>.</p>
 <p>See code & instructions for connecting at <a href="https://github.com/bradfitz/http2">https://github.com/bradfitz/http2</a>.</p>
 
 
 </body></html>`)
 </body></html>`)