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

HttpRequest / ProduceGoodUri issue #25

Closed wo80 closed 10 years ago

wo80 commented 10 years ago

Though commit b7bbc67916f1598e38f6b7cc43a7249397a4369f fixes the exception, the problem mentioned in issue #23 remains.

Example:

  1. Request is http://127.0.0.1/a/b/test.html
  2. Now we're in the HttpRequest constructor:
    • Uri = ProduceGoodUri("/a/b/test.html") = ["http://a/b/test.html"]
    • _pathAndQuery = Uri.PathAndQuery = ["/b/test.html"]

So http://127.0.0.1/b/test.html gets served (note the missing "/a" part).

hultqvist commented 10 years ago

I've suggested one fix in #26 does that work for you?

wo80 commented 10 years ago

Yes. Thanks for your contributions!