-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in debug method on content-length: 0 #39
Comments
Here were the versions I am using, from
|
I would suggest changing debug('uncaptured SET_PARAMETER method: %s', req.content.toString().trim()); to: var debugString;
if ("content" in req) {
debugString = req.content.toString().trim();
} else {
debugString = req.getHeader('Content-Type');
}
debug('uncaptured SET_PARAMETER method: %s', debugString); or something similar to capture both cases when you have content and when you do not. I can confirm this prevents airsonos from crashing out when it receives a stream with no image associated. My test case was going to tribeofnoise and playing a clip off the page (from safari) and sending to airplay. |
This worked for me. Thanks Sinaloit. |
The debug method on line 233 of
rtspmethods.js
seems to assume too much about a general request object:iTunes on iOS 9.2 issued the following request when streaming a file with no accompanying artwork:
I believe the zero-length content led
req.content
to be undefined, giving the following error while formatting the debug message:The following fix worked, but may not be the detailed logging message originally intended:
Thanks for looking at this issue, and thanks also for this excellent software.
The text was updated successfully, but these errors were encountered: