Don't send a QUERY_STRING
header to (S)CGI applications when a query was not present in the original URL #15
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?
Currently, and request to molly brown is forwarded to any (S)CGI applications with a
QUERY_STRING
header. When no query string was present on the original request, this value is simply an empty string.This makes it quite difficult to tell the difference between receiving an empty input from the user and receiving no input from the user. This becomes important when processing an input route, since an application would need to check to see if an input was received before deciding to process that input or send an
1X
response.This can be worked around by treating an empty input as no input, but this is slightly unintuitive, and prevents the application from receiving an empty input, which some users way want.
Update: I just checked the spec on this, and while I still think it would be easier if it were optional, the official spec has this to say:
So if this were a change to be made, we'd probably need some formal Gemini sub-spec of the CGI spec.
Given that, I'm going to close this issue for now.
As a standin, it might be worth setting the semi-standard
GEMINI_URL
header, which clients could check for the presence of a query string, but I think that would be a seperate issue