Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Check-in [7607f02394]

Overview
Comment:Fix undefined headers={} / miscombined .update() call
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7607f02394418d09fd1a273a0c5bbb10b2d00488
User & Date: mario on 2017-10-09 16:40:20
Other Links: manifest | tags
Context
2017-10-13
18:13
new plugin: st2subprocess: Alternative process start (player/recording app) methods: subprocess.*, or exec/spawn, and win32 api methods. check-in: 1e00cde4e2 user: mario tags: trunk
2017-10-09
16:40
Fix undefined headers={} / miscombined .update() call check-in: 7607f02394 user: mario tags: trunk
2017-09-23
03:16
Document required option. check-in: 21849a7d7c user: mario tags: trunk
Changes

Modified ahttp.py from [08b50af3db] to [8bc082bb05].

71
72
73
74
75
76
77
78

79
80
81
82
83
84
85
    ):

    # statusbar info
    if not quieter:
        progress_feedback(url, timeout=timeout/1.5)
    
    # combine headers
    headers = {}.update(add_headers)

    if ajax:
        headers["X-Requested-With"] = "XMLHttpRequest"
    if referer:
        headers["Referer"] = (referer if referer not in [True, 1] else url)

#ifdef BLD_DEBUG
#srcout    raise Exception("Simulated HTTP error")







|
>







71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
    ):

    # statusbar info
    if not quieter:
        progress_feedback(url, timeout=timeout/1.5)
    
    # combine headers
    headers = {}
    headers.update(add_headers)
    if ajax:
        headers["X-Requested-With"] = "XMLHttpRequest"
    if referer:
        headers["Referer"] = (referer if referer not in [True, 1] else url)

#ifdef BLD_DEBUG
#srcout    raise Exception("Simulated HTTP error")