File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ func (c *conn) IsClosed() bool {
68
68
// OpenStream creates a new stream.
69
69
func (c * conn ) OpenStream () (smux.Stream , error ) {
70
70
s , err := c .spdyConn ().CreateStream (http.Header {
71
- ":method" : []string {"GET " }, // this is here for HTTP/SPDY interop
72
- ":path" : []string {"/" }, // this is here for HTTP/SPDY interop
71
+ ":method" : []string {"POST " }, // this is here for HTTP/SPDY interop
72
+ ":path" : []string {"/" }, // this is here for HTTP/SPDY interop
73
73
}, nil , false )
74
74
if err != nil {
75
75
return nil , err
@@ -100,7 +100,9 @@ func (c *conn) Serve(handler smux.StreamHandler) {
100
100
// -- at this moment -- not the solution. Either spdystream must
101
101
// change, or we must throttle another way. go-peerstream handles
102
102
// every new stream in its own goroutine.
103
- err := s .SendReply (http.Header {}, false )
103
+ err := s .SendReply (http.Header {
104
+ ":status" : []string {"200" },
105
+ }, false )
104
106
if err != nil {
105
107
// this _could_ error out. not sure how to handle this failure.
106
108
// don't return, and let the caller handle a broken stream.
You can’t perform that action at this time.
0 commit comments