FreeBSD Bugzilla – Attachment 179070 Details for
Bug 212065
fetch -r fails on a complete file, even with -S 12345 (OS version independent)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Extremely naive patch to treat all 416 errors as successes
libfetch-ignore-all-416.patch (text/plain), 720 bytes, created by
Conrad Meyer
on 2017-01-19 16:43:36 UTC
(
hide
)
Description:
Extremely naive patch to treat all 416 errors as successes
Filename:
MIME Type:
Creator:
Conrad Meyer
Created:
2017-01-19 16:43:36 UTC
Size:
720 bytes
patch
obsolete
>diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c >index bb509c182dd5..95be11ee7023 100644 >--- a/lib/libfetch/http.c >+++ b/lib/libfetch/http.c >@@ -1925,16 +1925,11 @@ http_request_body(struct url *URL, const char *op, struct url_stat *us, > > /* requested range not satisfiable */ > if (conn->err == HTTP_BAD_RANGE) { >- if (url->offset == size && url->length == 0) { >- /* asked for 0 bytes; fake it */ >- offset = url->offset; >- clength = -1; >- conn->err = HTTP_OK; >- break; >- } else { >- http_seterr(conn->err); >- goto ouch; >- } >+ /* asked for 0 bytes; fake it */ >+ offset = url->offset; >+ clength = -1; >+ conn->err = HTTP_OK; >+ break; > } > > /* we have a hit or an error */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212065
:
179070
|
179140