Skip to content

Fix: Workaround for broken HTTP implementations

Marvin Scholz requested to merge epirat-incorrect-http-impl-workaround into master

Old Icecast versions (lower than 2.4.0), all current icecast-kh versions and derivates of that like the AzuraCast kh-ac fork do not treat the HTTP headers in the response as case-insensitive even though this is required by the HTTP RFC. Go by default canonicalizes the Headers, to prevent that and actually write our case-sensitive keys we need to access the map directly. This adds a helper that does so, tests for the helper and uses the helper in the relevant places in yp.go.

Merge request reports