aboutsummaryrefslogtreecommitdiff
path: root/request_test.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-16 00:55:54 -0500
committerAdnan Maolood <[email protected]>2021-02-16 00:55:56 -0500
commit779be8b95b408e1d8997aff0ac03fc105c9ccaf1 (patch)
tree292be8be9d1ddadb2955da2f1e8290abf240a9d9 /request_test.go
parentAdd build status badge to README.md (diff)
downloadgo-gemini-779be8b95b408e1d8997aff0ac03fc105c9ccaf1.tar.xz
go-gemini-779be8b95b408e1d8997aff0ac03fc105c9ccaf1.zip
request: Allow User in URLs
Diffstat (limited to 'request_test.go')
-rw-r--r--request_test.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/request_test.go b/request_test.go
index ea42c70..3497ed6 100644
--- a/request_test.go
+++ b/request_test.go
@@ -47,14 +47,6 @@ func TestReadRequest(t *testing.T) {
Err: io.EOF,
},
{
- Raw: "gemini://user:[email protected]\r\n",
- Err: ErrInvalidURL,
- },
- {
- Raw: "https://user:[email protected]\r\n",
- Err: ErrInvalidURL,
- },
- {
// 1030 bytes
Raw: maxURL + "xxxxxx",
Err: io.EOF,
@@ -121,14 +113,6 @@ func TestWriteRequest(t *testing.T) {
Req: newRequest(maxURL + "x"),
Err: ErrInvalidRequest,
},
- {
- Req: newRequest("gemini://user:[email protected]"),
- Err: ErrInvalidURL,
- },
- {
- Req: newRequest("https://user:[email protected]"),
- Err: ErrInvalidURL,
- },
}
for _, test := range tests {