]> granicus.if.org Git - curl/commit
rtsp: accept any RTSP session id
authorErik Janssen <erik.janssen@axis.com>
Wed, 10 Aug 2016 06:58:10 +0000 (08:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Aug 2016 06:58:10 +0000 (08:58 +0200)
commite577c43bb5c6728ae12c8171bac102a89c0cb0f9
tree0300d31e05959a0bcdb3a95dd80b0f1d0af700b3
parent85e63bcfc77a826cbe8a3410761b54e02ce2d08b
rtsp: accept any RTSP session id

Makes libcurl work in communication with gstreamer-based RTSP
servers. The original code validates the session id to be in accordance
with the RFC. I think it is better not to do that:

- For curl the actual content is a don't care.

- The clarity of the RFC is debatable, is $ allowed or only as \$, that
  is imho not clear

- Gstreamer seems to url-encode the session id but % is not allowed by
the RFC

- less code

With this patch curl will correctly handle real-life lines like:
Session: biTN4Kc.8%2B1w-AF.; timeout=60

Bug: https://curl.haxx.se/mail/lib-2016-08/0076.html
lib/rtsp.c