Reject schemes other than gemini:// in NewRequest

This commit is contained in:
Adnan Maolood
2020-10-27 21:18:05 -04:00
parent 239ec885f7
commit b84811668c
3 changed files with 6 additions and 4 deletions
+2 -4
View File
@@ -29,10 +29,8 @@ func (s Status) Class() StatusClass {
return StatusClass(s / 10)
}
// StatusMessage returns the status message corresponding to the provided
// status code.
// StatusMessage returns an empty string for input, successs, and redirect
// status codes.
// Message returns a status message corresponding to this status code.
// It returns an empty string for input, successs, and redirect status codes.
func (s Status) Message() string {
switch s {
case StatusTemporaryFailure: