Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 84103 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/update/internal/core/HttpResponse.java (-2 / +4 lines)
Lines 29-35 Link Here
29
29
30
	public InputStream getInputStream() throws IOException {
30
	public InputStream getInputStream() throws IOException {
31
		if (in == null && url != null) {
31
		if (in == null && url != null) {
32
			connection = url.openConnection();
32
			if (connection == null)
33
				connection = url.openConnection();
33
			if (offset > 0)
34
			if (offset > 0)
34
				connection.setRequestProperty("Range", "bytes=" + offset + "-"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
35
				connection.setRequestProperty("Range", "bytes=" + offset + "-"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
35
			in = connection.getInputStream();
36
			in = connection.getInputStream();
Lines 43-49 Link Here
43
	public InputStream getInputStream(IProgressMonitor monitor)
44
	public InputStream getInputStream(IProgressMonitor monitor)
44
		throws IOException, CoreException {
45
		throws IOException, CoreException {
45
		if (in == null && url != null) {
46
		if (in == null && url != null) {
46
			connection = url.openConnection();
47
			if (connection == null)
48
				connection = url.openConnection();
47
			if (offset > 0)
49
			if (offset > 0)
48
				connection.setRequestProperty("Range", "bytes=" + offset + "-"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
50
				connection.setRequestProperty("Range", "bytes=" + offset + "-"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
49
51

Return to bug 84103