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

WordPressClient with HttpClient posts to incorrect URL #263

Open
ChivanTiebosch opened this issue Jul 2, 2021 · 0 comments
Open

WordPressClient with HttpClient posts to incorrect URL #263

ChivanTiebosch opened this issue Jul 2, 2021 · 0 comments

Comments

@ChivanTiebosch
Copy link

When using the WordPressClient(HttpClient httpClient, string defaultPath = DEFAULT_PATH) constructor the WordPressUri is set based on the httpClient.BaseAddress and a trailing / is added. However, the httpClient passed to the HttpHelper still has the URI without the leading "/" (valid URI format needs to be this). Therefore the generated URLs in the Client based on DEFAULT_PATH (changeable) and _jwtPath (read-only) are incorrect.

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

No branches or pull requests

2 participants