Fatal error when server does not return mime in header #20
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: solderpunk/AV-98#20
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
I was unsure if molly-brown supported cgi currently or not. So I decided to make a
cgi
folder in my user folder on rawtext.club and added a simple python script:gemini://rawtext.club/~sloum/cgi/test
. All the script does is print40 The script works
to stdout (I did an error code as a part of my debugging this issue, it had formerly been a 20).In Bombadillo I get the message: "Improperly formatted mimetype received from server". This does ok, but didnt tell me the issue (but does not kill the program). So I tried AV-98 and got the following:
I believe what is happening is that molly does not supply a mime if none can be discerned. This means that the response header was likely:
20 \r\n
. Neither of our clients like that response. I will open a similar issue for molly to deal with an empty mime (the filetest
gives no hint as to its type without looking at a shebang, which I guess the go mime library does not do). I would suggest returningtext/plain
when a mime cannot be discerned.If relevant: fixed in my fork (https://tildegit.org/continue/AV-98).
Pretty embarrassed that such a trivial bug stayed open for 3 years, but I'm happy to close this issue now after merging the PR that @continue provided.