Fixes a glitch that was preventing redirects from getting shown in lynxmode #67
No reviewers
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#67
Loading…
Reference in New Issue
No description provided.
Delete Branch "minor-lynxmode-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This makes it so that if a header check cannot find a content-type header, we assume that whatever we get should be displayed. The specific case that this fixes is redirects (I was having some issues with this).
In the long run we may want more complex header parsing, but I think this is a good call for the time being and solves the issue.
I was trying to find an example to test this one, but found a lot of varied behaviour. Some still download because they return 404 for the header request, some redirect differently depending on the browser.
It's clear we won't be able to support every site.
Otherwise, it looks like a good approach to the issue presented, but I can't find a decent place to test it.
Yeah, it seems that there are a lot of edge cases here. :-/
What do you think? Merge this in as solving at least the redirect issue? Or hold off and try to figure out more edge cases?
I'll merge this in. We probably will be best addressing these as they come up naturally.