Skip to content

Conversation

@cadenkriese
Copy link

The Starladder Budapest Majors' CSTV feeds redirect all invalid requests to the major's home webpage. Since those redirects end up returning 200, demoinfocs will append the page HTML to the buffer, causing a panic. My solution is to treat responses that don't use Content-Type: application/octet-stream as errors.

@markus-wa
Copy link
Owner

I couldn't find any documentation that this header is required / expected https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Broadcast

The example does set it, but does the CS2 client require it?

@cadenkriese
Copy link
Author

Hmm, I'm not sure. I also can't check for you since I don't have access to a machine that can run CS2 client for now. Would you prefer a solution that checks that the content of the payload is valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants