[FFmpeg-trac] #7851(undetermined:new): two User-Agent headers appear in the result

FFmpeg trac at avcodec.org
Wed Apr 17 16:01:48 EEST 2019


#7851: two User-Agent headers appear in the result
--------------------------------------+----------------------------------
             Reporter:  redstoneleo   |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  4.1
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Command :
 {{{
 ffmpeg -headers "Accept:*/*" -headers "Accept-Encoding:gzip, deflate, br"
 -headers "Accept-Language:zh-CN,zh;q=0.9,en;q=0.8" -headers "Origin:https
 ://pc-shop.xiaoe-tech.com" -headers "Referer:https://pc-shop.xiaoe-
 tech.com/appzDSBtscz6568/video_details?id=v_5b0e8459e1ff5_nSu4umqK"
 -headers "User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36
 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" -i
 "https://httpbin.org" -v trace
 }}}

 After setting , two User-Agent headers appear in the result

 {{{
 User-Agent: Lavf/58.20.100
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: httpbin.org
 Icy-MetaData: 1
 User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/72.0.3626.121 Safari/537.36

 }}}

 The difference is that there is a space in front of the first User-Agent
 header value, while not for the second . I don't know what's wrong here,
 if it is not a bug , it would be better to specify the behavior in the
 document.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7851>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list