HTTP::Tiny does only HTTP/1.1, not HTTP/1.0. On Mon, Apr 11, 2016 at 10:13 PM, Alceu Rodrigues de Freitas Junior via cpan-testers-discuss <cpan-testers-discuss@perl.org> wrote:
> Hello all, > > I was reading about CPAN::Mini::Webserver and was wondering if I couldn't > use it to share my local CPAN repository between the different VM's I'm > using. > > I wasn't able to find any documentation about, but decided to take a shoot > and actually it worked! After starting the webserver, I just need to edit > the CPAN configuration url_list and add it as the first option. > > Nevertheless I found out that my OpenBSD VM's was presenting warning > messages from HTTP::Tiny: > > Fetching with HTTP::Tiny: > > http://192.168.1.103:2963/authors/id/B/BI/BINGOS/Test-Reporter-Transport-Socket-0.32.tar.gz > HTTP::Tiny failed with an internal error: Malformed Status-Line: HTTP/1.0 > 200\r\n > > It worked fine with curl (which I optionally installed and configured in > CPAN for using). > > Any of you have any experience with such setup? I wondering if the error > is due a bug in CPAN::Mini::Webserver or if HTTP::Tiny is expecting a HTTP > 1.1 header. > > Anyway, is there any option to configure CPAN to use Curl by default > instead trying HTTP::Tiny first? That would work as an workaround at least. > I couldn't locate anything related to this in the related Pod. > > Regards, > > Alceu > -- David Golden <x...@xdg.me> Twitter/IRC/Github: @xdg