equal
deleted
inserted
replaced
253 } else { |
253 } else { |
254 if (contentLen == -1) { |
254 if (contentLen == -1) { |
255 noContentToSend = true; |
255 noContentToSend = true; |
256 contentLen = 0; |
256 contentLen = 0; |
257 } |
257 } |
258 if (noContentLengthHeader) { |
258 if (!noContentLengthHeader) { |
259 rspHdrs.remove("Content-length"); |
|
260 } else { |
|
261 rspHdrs.set("Content-length", Long.toString(contentLen)); |
259 rspHdrs.set("Content-length", Long.toString(contentLen)); |
262 } |
260 } |
263 o.setWrappedStream (new FixedLengthOutputStream (this, ros, contentLen)); |
261 o.setWrappedStream (new FixedLengthOutputStream (this, ros, contentLen)); |
264 } |
262 } |
265 } |
263 } |