response.addHeader("Content-Range", "bytes " + rangeStart + "-" + rangeEnd + "/" + contentLength);
}
return response;
} catch (Exception e) {
try {
return new HTTPExceptionResponse(e);
} catch (IOException ex) {
throw new HTTPException(HttpURLConnection.HTTP_INTERNAL_ERROR, "Internal Error", ex.getMessage());
}
}
}