Fix incorrect content length for the instrumented source #51

Merged
merged 1 commit into from Apr 12, 2013
Commits on Apr 11, 2013
  1. @dkubb

    Fix incorrect content length for the instrumented source

    dkubb committed Apr 11, 2013
    * The original code  used String#length, which returns the length
      of the string in characters, but the header must be the length of
      the string in bytes. This was causing errors because the browser
      was (presumably) truncating the content after receiving a (lower)
      specific number of bytes than the actual number of bytes in the
      content.