Browse Source

http2: cover server recv SETTINGS

Blake Mizerany 11 years ago
parent
commit
4f54a4c76a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      http2_test.go

+ 6 - 0
http2_test.go

@@ -115,6 +115,12 @@ func TestServer(t *testing.T) {
 	})
 	})
 	defer st.Close()
 	defer st.Close()
 
 
+	covers("3.5", `
+		The server connection preface consists of a potentially empty
+		SETTINGS frame ([SETTINGS]) that MUST be the first frame the
+		server sends in the HTTP/2 connection.
+	`)
+
 	st.writePreface()
 	st.writePreface()
 	st.writeInitialSettings()
 	st.writeInitialSettings()
 	st.wantSettings().ForeachSetting(func(s Setting) {
 	st.wantSettings().ForeachSetting(func(s Setting) {