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

Fix for improper path encoding #572

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

andrueastman
Copy link
Member

Fixes #553

Changes proposed in this pull request

  • Encode the path segment of the URI to ensure special characters are sorted out in accordance with the one drive expectations
  • Adds tests to verify the URL

Therefore making a call in the code as follows should now NOT fail with an error.

var session = await client.Drives[DriveId].Root.ItemWithPath("Test#1.txt").CreateUploadSession().Request().PostAsync();

Other links

@andrueastman andrueastman self-assigned this Nov 1, 2019
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

Successfully merging this pull request may close these issues.

File with # character can`t be uploaded
2 participants