dotnet-websharper / owin

Wrappers for hosting WebSharper sitelets and remoting components in OWIN projects
Apache License 2.0
10 stars 9 forks source link

Wrong Http.Request.Uri when running on a non-empty PathBase #11

Closed Tarmil closed 9 years ago

Tarmil commented 9 years ago

Failing example:

WebApp.Start("http://localhost:9000/MyService", fun appB ->
    appB.UseStaticFiles(StaticFileOptions(FileSystem = PhysicalFileSystem(workingDirectory)))
        .UseDiscoveredSitelet(workingDirectory)
    |> ignore)

Then when requesting eg. http://localhost:9000/MyService/SomePage, the sitelet receives the path /MyService/SomePage to parse, when it should be /SomePage.