-
Notifications
You must be signed in to change notification settings - Fork 62
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
write_any_response not sending optional causes failure on Samsung TV #73
Comments
That comment is out of date... As you can see from the code, h11 does send whatever "reason" text the user gives it. Can you give more details on how you're using h11, and how you concluded that Samsung's http implementation is broken? |
I'm using Quart, which uses h11. The app I'm working on is not quite ready to be published. I've got it working with Flask, but the tv won't respond to the Quart version unless I populate the response.reason. By your comment, I'm assuming the response.reason should be populated before it gets to write_any_response(). I see asgi_send() being called with the message, but then it builds a new response using only the status. Where is the correct place for me to supply the reason? |
The quick fix would be to pass the reason phrase into the Out of curiosity, does your TV require a specific reason phrase, or does it just insist that it be non-empty? Given that this is breaking things (wtf is wrong with you, samsung TV), maybe we should also start defaulting the |
Interestingly enough its completely happy with b'HTTP/1.1 200 foo\r\n' or b'HTTP/1.1 206 foo\r\n' |
Heh. Well, I guess that's another option: if (I'm joking!) |
I finally got around to posting the app I mentioned that has the problem on my tv. https://github.com/shaolo1/VideoServer. I've temporarily monkey patched the h11 issue to get it working. |
I'm trying to work on an app that communicates with my Samsung TV. After some digging I figured out that the missing status text causes it to not work.
Seeing as how there is a FIXME here already. Would it be possible to get the following added?
The text was updated successfully, but these errors were encountered: