-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oVirt provider: Fix the POST auth request
The oVirt auth request needs to be Content-type application/x-www-form-urlencoded, which requires the URL encoding inside the POST data request. For this was necessary to update the Post method in Client. If the posted body is type string, it will pass it as it is. If the body is any other type, it uses the json.Marshal for json formatting, which the oVirt auth API does not support. Signed-off-by: Martin Necas <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters