Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Error encoding service control url #52

Closed
lontivero opened this issue Aug 12, 2016 · 1 comment
Closed

Error encoding service control url #52

lontivero opened this issue Aug 12, 2016 · 1 comment

Comments

@lontivero
Copy link
Owner

Forum: article "Open.NAT - A NAT Traversal library for .NET and Mono"
Subject: 3 bugs (View)
Sender: gunnarD
Date: Thursday, August 11, 2016 9:53am

Problem in UpnpNatDeviceInfo:

Had to change from this

var builder = new UriBuilder("http", locationUri.Host, locationUri.Port, serviceControlUrl);
ServiceControlUri = builder.Uri;

to this

var builder = new UriBuilder("http", locationUri.Host, locationUri.Port);
ServiceControlUri = new Uri(builder.Uri + serviceControlUrl.TrimStart('/'));

else I got HTTP error 404 Not found (problem with url, /control?WANIPConnection became /control%3FWANIPConnection

@lontivero
Copy link
Owner Author

it was fixed in commit 790b407 for issue 22 Error when Service control urls have question marks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant