diff options
| author | Adnan Maolood <[email protected]> | 2021-03-20 12:27:20 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-20 12:27:20 -0400 |
| commit | 5141eaafaa991a5ab4221fa466e86a167d8910c7 (patch) | |
| tree | 4b8939eed193b54d3c53369616385b77274621a9 /response_test.go | |
| parent | response: Treat empty meta as invalid (diff) | |
| download | go-gemini-5141eaafaa991a5ab4221fa466e86a167d8910c7.tar.xz go-gemini-5141eaafaa991a5ab4221fa466e86a167d8910c7.zip | |
Tweak request and response parsing
Diffstat (limited to 'response_test.go')
| -rw-r--r-- | response_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/response_test.go b/response_test.go index ccd279b..d5e6a6b 100644 --- a/response_test.go +++ b/response_test.go @@ -65,15 +65,15 @@ func TestReadWriteResponse(t *testing.T) { }, { Raw: "", - Err: io.EOF, + Err: ErrInvalidResponse, }, { Raw: "10 Search query", - Err: io.EOF, + Err: ErrInvalidResponse, }, { Raw: "20 text/gemini\nHello, world!", - Err: io.EOF, + Err: ErrInvalidResponse, }, { Raw: "20 text/gemini\rHello, world!", @@ -81,7 +81,7 @@ func TestReadWriteResponse(t *testing.T) { }, { Raw: "20 text/gemini\r", - Err: io.EOF, + Err: ErrInvalidResponse, }, { Raw: "abcdefghijklmnopqrstuvwxyz", |