Bug 20279

Summary: fetch command fails when Content-Length HTTP header is not given
Product: Base System Reporter: inoue <inoue>
Component: binAssignee: GNATS administrator <gnats-admin>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description inoue 2000-07-29 04:50:00 UTC
The command /usr/bin/fetch fails as follows.
This host doesn't give Content-Length header.

windy inoue$ /usr/bin/fetch http://www.asahi.com/paper/front.html
Receiving front.html (4294967295 bytes): 0%
24521 bytes transferred in 3.3 seconds (7.15 kBps)
fetch: front.html appears to be truncated: 24521/4294967295 bytes

Fix: The following modification solved the problem. But I don't know why it suddenly started to fail these days. The type off_t and -1 may not be comparable? (by compiler optimization?)
How-To-Repeat: 
Ditto.
It happens with other url:
http://www.yomiuri.co.jp/
Both servers uses Netscape.
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2000-08-02 14:02:58 UTC
State Changed
From-To: open->closed

Duplicate commit.