Apply #1649
This commit is contained in:
parent
10bf0e5edb
commit
3b297a2557
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
|
Loading…
Reference in New Issue