[plt-scheme] Possible bug getting requests from non-complete urls.

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Dec 8 21:45:40 EST 2008

On Dec  8, Patrick wrote:
> I'm experiencing a weird issue...
> Here's a test case:
> #lang scheme
> ...
> (define site-url "http://www.circuitcity.com")

That's the problem -- net/url sends a line like:

  GET  HTTP/1.0

which is bogus, according to the HTTP RFC -- I fixed it to use "/" if
the path is empty, following what the RFC says:

  Note that the absolute path cannot be empty; if none is present in
  the original URI, it must be given as "/" (the server root).

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.