From 20284fed88b82279a851ccd0e50b79e151876307 Mon Sep 17 00:00:00 2001 From: Corwin Brown Date: Wed, 28 Oct 2015 11:55:19 -0500 Subject: [PATCH] bug fixes --- lib/ansible/modules/extras/windows/win_uri.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/windows/win_uri.ps1 b/lib/ansible/modules/extras/windows/win_uri.ps1 index cb4fda226ef..471bceab723 100644 --- a/lib/ansible/modules/extras/windows/win_uri.ps1 +++ b/lib/ansible/modules/extras/windows/win_uri.ps1 @@ -31,16 +31,17 @@ $webrequest_opts = @{} $url = Get-AnsibleParam -obj $params -name "url" -failifempty $true $method = Get-AnsibleParam -obj $params "method" -default "GET" $content_type = Get-AnsibleParam -obj $params -name "content_type" +$headers = Get-AnsibleParam -obj $params -name "headers" $body = Get-AnsibleParam -obj $params -name "body" $webrequest_opts.Uri = $url Set-Attr $result.win_uri "url" $url -@webrequest_opts.Method = $method +$webrequest_opts.Method = $method Set-Attr $result.win_uri "method" $method -@webrequest_opts.content_type = $content_type -Set-Attr $result.content_type "content_type" $content_type +$webrequest_opts.ContentType = $content_type +Set-Attr $result.win_uri "content_type" $content_type if ($headers -ne $null) { $req_headers = @{}