Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Nov 04, 2015
  2. Oct 27, 2015
    • Benno Fünfstück's avatar
      HTTPUtils: curl: correct handling of text response · 9591d954
      Benno Fünfstück authored
      This fixes an issue in the curl transport when a text response is returned
      that doesn't end with a newline from a POST or PUT request. The code expects
      the HTTP status code to be on a new line, but that is not the case if the response
      doesn't have a trailing new line. We fix this by always printing a new line before
      printing the status code. To avoid duplicate new lines, we now strip trailing empty
      lines at the end of the response.
      9591d954
    • Benno Fünfstück's avatar
      HttpUtils: fixes for powershell transport · 5ebc1589
      Benno Fünfstück authored
      This commit refactors the powershell transport to avoid duplication and
      also fixes a few problems with it:
      
      * We now run powershell with the ExecutionPolicy bypass, is required when
        the default security policy disallows executing unsigned scripts
        (like our script)
      * The powershell script itself has been refactored to behave more like
        curl. In particular, it now prints HTTP status code errors in a nicer
        way instead of failing with a PowerShell Exception + backtrack. We also
        now only print the exception message when we get any other exception,
        since the user is likely not familar with the powershell script at all
        and the other information is thus only confusing and not helpful at all.
      * We now handle the case where the server returns some message after a
        POST or a PUT correctly. Previously, that resulted in the raw bytes
        being written to stdout before the HTTP status code, which confused the
        simplistic parser. We now always write the HTTP status code first and
        decode the bytes as UTF8 before sending them to stdout as well.
      5ebc1589
    • Benno Fünfstück's avatar
      96398f57
  3. Oct 26, 2015
  4. Oct 23, 2015
  5. Oct 22, 2015
  6. Oct 20, 2015
  7. Oct 19, 2015
  8. Oct 18, 2015
  9. Oct 17, 2015
  10. Oct 16, 2015
  11. Oct 15, 2015
  12. Oct 14, 2015
  13. Oct 13, 2015
Loading