Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Issue 721213002: Fix a number of issues with the Range header handling for serving files (Closed)

Created:
6 years, 1 month ago by Søren Gjesse
Modified:
6 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix a number of issues with the Range header handling for serving files * Handling end position after file length * Handling suffix range longer than file length * Ignore syntactically invalid Range headers * Return 416 (Requested range not satisfiable) if start < end Added tests for these cases. BUG=http://dartbug.com/21587 R=ajohnsen@google.com, kustermann@google.com Committed: https://code.google.com/p/dart/source/detail?r=41775

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 38

Patch Set 3 : Addressed review comments #

Total comments: 8

Patch Set 4 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -60 lines) Patch
A pkg/http_server/CHANGELOG.md View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/http_server/lib/src/virtual_directory.dart View 1 2 1 chunk +51 lines, -32 lines 0 comments Download
M pkg/http_server/pubspec.yaml View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/http_server/test/http_mock.dart View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M pkg/http_server/test/utils.dart View 1 2 3 8 chunks +117 lines, -23 lines 0 comments Download
M pkg/http_server/test/virtual_directory_test.dart View 1 2 2 chunks +167 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Søren Gjesse
6 years, 1 month ago (2014-11-13 15:45:38 UTC) #1
Anders Johnsen
lgtm, with a suggestion for simplifying the range code. I guess this is initiated by ...
6 years, 1 month ago (2014-11-13 16:12:31 UTC) #2
kustermann
https://codereview.chromium.org/721213002/diff/20001/pkg/http_server/lib/src/virtual_directory.dart File pkg/http_server/lib/src/virtual_directory.dart (right): https://codereview.chromium.org/721213002/diff/20001/pkg/http_server/lib/src/virtual_directory.dart#newcode213 pkg/http_server/lib/src/virtual_directory.dart:213: response.close(); Maybe set the content-length header in case of ...
6 years, 1 month ago (2014-11-14 13:25:27 UTC) #3
Søren Gjesse
PTAL https://codereview.chromium.org/721213002/diff/20001/pkg/http_server/lib/src/virtual_directory.dart File pkg/http_server/lib/src/virtual_directory.dart (right): https://codereview.chromium.org/721213002/diff/20001/pkg/http_server/lib/src/virtual_directory.dart#newcode213 pkg/http_server/lib/src/virtual_directory.dart:213: response.close(); On 2014/11/14 13:25:26, kustermann wrote: > Maybe ...
6 years, 1 month ago (2014-11-14 15:27:30 UTC) #4
kustermann
lgtm https://codereview.chromium.org/721213002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/721213002/diff/40001/CHANGELOG.md#newcode1 CHANGELOG.md:1: # 0.9.4 This CHANGELOG.md is in the root ...
6 years, 1 month ago (2014-11-17 11:15:30 UTC) #5
Søren Gjesse
https://codereview.chromium.org/721213002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/721213002/diff/40001/CHANGELOG.md#newcode1 CHANGELOG.md:1: # 0.9.4 On 2014/11/17 11:15:29, kustermann wrote: > This ...
6 years, 1 month ago (2014-11-17 13:13:23 UTC) #6
Søren Gjesse
6 years, 1 month ago (2014-11-17 14:21:18 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 41775 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698