Skip to content

Add http response code to example - fixes safari #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anotherjesse
Copy link
Owner

Safari/iOS web clients will fail if the the HTTP response code isn't sent

Safari shows an error:

Safari Can't Open The Page
Safari can't open the page "10.0.0.75" because the server unexpected dropped the
connection. This sometimes occurs when the server is busy. Wait for a few minutes,
and then try again

By adding the http response code safari, chrome, firefox all will render the webpage

Safari/iOS web clients will fail if the the HTTP response code isn't sent
@anotherjesse
Copy link
Owner Author

Looks like links/lynx web browsers need to have a Content-Type header as well:

    cl.send('HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\n')

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.

1 participant