aesiniath / http-streams

Haskell HTTP client library for use with io-streams
https://hackage.haskell.org/package/http-streams
BSD 3-Clause "New" or "Revised" License
50 stars 48 forks source link

SSL example fails with parse exception #56

Open patrickt opened 10 years ago

patrickt commented 10 years ago

Checking out the source and loading the SSL test file fails with "not enough bytes".

cabal repl Network.Http.Client> :l tests/SecureSocketsSnippet.hs Snippet> main Exception: Parse exception: not enough bytes

I am running the Haskell Platform on 32-bit OS X using GHC 7.6.3.

dmjio commented 10 years ago

I get the same thing on windows.

istathar commented 10 years ago

Replicated on GHC 7.8

istathar commented 10 years ago

For what it's worth,

 λ> get "https://github.com/" debugHandler

works. So I'm not immediately clear what's up with that test snippet.

AfC

gregorycollins commented 10 years ago

Seeing this in the Snap test suite also.

istathar commented 10 years ago

@gregorycollins oh, that's not cool. I'll try and have another go at finding this.

gregorycollins commented 9 years ago

After doing some digging here: I'm not sure I'm hitting the same error in the snap test suite (we send proper responses there) but the reason the check code is failing is that the github api server is sending headers/status lines delimited by LF only rather than CR+LF.