mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
internal: remove outdated TODO
This commit is contained in:
parent
7d0d522fa7
commit
a81a7014c6
@ -83,7 +83,6 @@ func (c *Client) Do(req *http.Request) (*http.Response, error) {
|
|||||||
if resp.StatusCode/100 != 2 {
|
if resp.StatusCode/100 != 2 {
|
||||||
var wrappedErr error
|
var wrappedErr error
|
||||||
if strings.HasPrefix(resp.Header.Get("Content-Type"), "text/") {
|
if strings.HasPrefix(resp.Header.Get("Content-Type"), "text/") {
|
||||||
// TODO: if body is plaintext, read it and populate the error message
|
|
||||||
lr := io.LimitedReader{R: resp.Body, N: 1024}
|
lr := io.LimitedReader{R: resp.Body, N: 1024}
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
io.Copy(&buf, &lr)
|
io.Copy(&buf, &lr)
|
||||||
|
Loading…
Reference in New Issue
Block a user