Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge git://github.com/deanlandolt/commonjs-utils

  • Loading branch information...
commit 5237619a8744fab93266a0c3dafe6a582d412425 2 parents 8f138fa + 8928094
Kris Zyp authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  lib/jsgi/parse-header.js
2  lib/jsgi/parse-header.js
@@ -3,7 +3,9 @@
3 3 */
4 4
5 5 exports["content-range"] = function(contentRange, pageSize) {
  6 + if (!contentRange) return;
6 7 var parts = contentRange.match(/(\d+)\-(\d+)\/(\d+)/);
  8 + if (!parts) return;
7 9 var r = {};
8 10 r.start = parseInt(parts[1], 10);
9 11 r.end = parseInt(parts[2], 10);

0 comments on commit 5237619

Please sign in to comment.
Something went wrong with that request. Please try again.