Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra info at end of URL not passed through in Windows #6

Closed
GrahamAsher opened this issue Mar 23, 2023 · 0 comments
Closed

extra info at end of URL not passed through in Windows #6

GrahamAsher opened this issue Mar 23, 2023 · 0 comments

Comments

@GrahamAsher
Copy link

A URL like

http://localhost/maps/torridon.ctm1?type=metadata

does not work properly because the extra info '?type=metadata' is stripped from the URL in the Windows implementation of the Naett library.

The fix is to change this line:

naett/naett.c

Line 1198 in e44a499

req->resource = wcsndup(components.lpszUrlPath, components.dwUrlPathLength);

to

req->resource = wcsndup(components.lpszUrlPath, components.dwUrlPathLength + components.dwExtraInfoLength);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants