/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/HttpServer.py

  • Committer: Aaron Bentley
  • Date: 2006-12-13 05:07:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2181.
  • Revision ID: aaron.bentley@utoronto.ca-20061213050719-c7d4iis3sc240qrl
Grammar fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
                    ranges_valid = False
177
177
                    break
178
178
        if not ranges_valid:
179
 
            # RFC2616 14-16 says that invalid Range headers could
 
179
            # RFC2616 14.35 says that invalid Range headers must
180
180
            # be ignored. If they are, the whole file should be
181
181
            # returned as though no Range header was present. If
182
182
            # they aren't, the server should return a 416 error.
 
183
            # FIXME: per 14.35, ranges are only invalid if start > end.
 
184
            # end values should be truncated to file_size -1 if they exceed it.
 
185
            # only start values >= file_size should produce a 416.
183
186
            file.close()
184
187
            self.send_error(416, "Requested range not satisfiable")
185
188
            return