diff options
| author | Adnan Maolood <[email protected]> | 2021-02-16 00:55:54 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-16 00:55:56 -0500 |
| commit | 779be8b95b408e1d8997aff0ac03fc105c9ccaf1 (patch) | |
| tree | 292be8be9d1ddadb2955da2f1e8290abf240a9d9 /request.go | |
| parent | Add build status badge to README.md (diff) | |
| download | go-gemini-779be8b95b408e1d8997aff0ac03fc105c9ccaf1.tar.xz go-gemini-779be8b95b408e1d8997aff0ac03fc105c9ccaf1.zip | |
request: Allow User in URLs
Diffstat (limited to 'request.go')
| -rw-r--r-- | request.go | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -102,20 +102,12 @@ func ReadRequest(r io.Reader) (*Request, error) { if err != nil { return nil, err } - if u.User != nil { - // User is not allowed - return nil, ErrInvalidURL - } return &Request{URL: u}, nil } // Write writes a Gemini request in wire format. // This method consults the request URL only. func (r *Request) Write(w *bufio.Writer) error { - if r.URL.User != nil { - // User is not allowed - return ErrInvalidURL - } url := r.URL.String() if len(url) > 1024 { return ErrInvalidRequest |