This commit is contained in:
Greg Wilkins 2017-08-07 10:07:16 +10:00 committed by Joakim Erdfelt
parent 10bf0e5edb
commit 3b297a2557
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ public class ResourceHttpContent implements HttpContent
public HttpField getContentLength() public HttpField getContentLength()
{ {
long l=_resource.length(); long l=_resource.length();
return l==-1?null:new HttpField.LongValueHttpField(HttpHeader.CONTENT_LENGTH,_resource.length()); return l==-1?null:new HttpField.LongValueHttpField(HttpHeader.CONTENT_LENGTH,l);
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */