Skip to content

Commit

Permalink
Fix upload statuscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistuke committed Mar 11, 2018
1 parent 50fbdc0 commit 42d4885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/HttpUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ powershellTransport prog =
, "}"
, ""
, "$responseStream = $request.getresponse()"
, "Write-Host \"200\";"
, "Write-Host ($response.StatusCode -as [int]);"
, "$responseReader = new-object System.IO.StreamReader $responseStream.GetResponseStream()"
, "Write-Host $responseReader.ReadToEnd()"
]
Expand Down

0 comments on commit 42d4885

Please sign in to comment.