use long.Parse when setting content length
Merge pull request #928 from LukePulverenti/master

use long.Parse when setting content length