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

⌈⌋ branch:  streamtuner2


Check-in [7607f02394]

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