Handle httplib bad status line error
fix string formatting
Merge pull request #6 from andrewspiers/handlebadstatusline

Handle httplib bad status line error