jgauffin / griffin.networking

Networking library for .NET
http://blog.gauffin.org/2012/05/griffin-networking-a-somewhat-performant-networking-library-for-net/
GNU Lesser General Public License v3.0
108 stars 35 forks source link

Griffin.Networking.Protocol.Http: HttpRequest ProduceGoodUri not working #23

Closed wo80 closed 10 years ago

wo80 commented 10 years ago

Using the DemoServer from the Griffin.Webserver project:

Requesting http://127.0.0.1/ gives an exception http://127.0.0.1/a/test.html returns http://127.0.0.1/test.html http://127.0.0.1/a/b/test.html returns http://127.0.0.1/b/test.html

This was introduced in commit 553cc413dac94a4744576de220e02f1ee3c451d6. Reverting to _pathAndQuery = url; fixes the issue.

wo80 commented 10 years ago

Well, the exception is gone, but it's still swallowing the first part of the requested path: http://127.0.0.1/a/test.html returns http://127.0.0.1/test.html http://127.0.0.1/a/b/test.html returns http://127.0.0.1/b/test.html