diff --git a/protocol/rtsp/client.go b/protocol/rtsp/client.go index 00a00b5a..0d0fdc0a 100644 --- a/protocol/rtsp/client.go +++ b/protocol/rtsp/client.go @@ -41,7 +41,6 @@ type Client struct { urlStr string url *url.URL conn net.Conn - Client string } // NewClient returns a pointer to a new Client. The URL u will be parsed and @@ -82,15 +81,13 @@ func (s *Client) Setup(track, transport string) (*Response, error) { func(req *Request) { req.Header.Add("Transport", transport) }, - func(resp *Response) { - s.Client = resp.Header.Get("Client") - }, + nil, ) } // Play forms and sends an RTSP request of method PLAY to the RTSP server func (s *Client) Play() (*Response, error) { - return s.writeRequest(s.url, play, func(req *Request) { req.Header.Add("Client", s.Client) }, nil) + return s.writeRequest(s.url, play, nil, nil) } // writeRequest creates an RTSP request of the method given and writes it to the