diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-11-11 15:17:52 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-11-11 15:20:02 +0100 |
| commit | 65a19abf3fad2dee86cc3585124ca2f85cf115b7 (patch) | |
| tree | 895490247de7d5752fb3fcaecdf634eb718beb6a | |
| parent | 56f35d92f5b5d80f46c04f443d18876daf40c240 (diff) | |
download: Work around more bogus HTTP handling in Guile 2.2 <= 2.2.2.
Reported by Mark H Weaver <mhw@netris.org>
at <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00190.html>.
* guix/build/download.scm (guile-2.2) [write-request-line]: Backport
Guile commit 6ad28ae3bc6a6d9e95ab7d70510d12c97673a143.
| -rw-r--r-- | guix/build/download.scm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/guix/build/download.scm b/guix/build/download.scm index 790576b2350..a65c7b9964e 100644 --- a/guix/build/download.scm +++ b/guix/build/download.scm | |||
| @@ -514,7 +514,8 @@ port if PORT is a TLS session record port." | |||
| 514 | (declare-relative-uri-header! "Location"))))) | 514 | (declare-relative-uri-header! "Location"))))) |
| 515 | 515 | ||
| 516 | ;; XXX: Work around broken proxy handling on Guile 2.2 <= 2.2.2, fixed in | 516 | ;; XXX: Work around broken proxy handling on Guile 2.2 <= 2.2.2, fixed in |
| 517 | ;; Guile commit 7d0d9e2c25c1e872cfc7d14ab5139915f1813d56. See bug report at | 517 | ;; Guile commits 7d0d9e2c25c1e872cfc7d14ab5139915f1813d56 and |
| 518 | ;; 6ad28ae3bc6a6d9e95ab7d70510d12c97673a143. See bug report at | ||
| 518 | ;; <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00070.html>. | 519 | ;; <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00070.html>. |
| 519 | (cond-expand | 520 | (cond-expand |
| 520 | (guile-2.2 | 521 | (guile-2.2 |
| @@ -539,9 +540,9 @@ port if PORT is a TLS session record port." | |||
| 539 | (put-string port "://") | 540 | (put-string port "://") |
| 540 | (cond | 541 | (cond |
| 541 | ((string-index host #\:) ;<---- The fix is here! | 542 | ((string-index host #\:) ;<---- The fix is here! |
| 542 | (put-char #\[ port) | 543 | (put-char port #\[) ;<---- And here! |
| 543 | (put-string port host | 544 | (put-string port host) |
| 544 | (put-char port #\]))) | 545 | (put-char port #\])) |
| 545 | (else | 546 | (else |
| 546 | (put-string port host))) | 547 | (put-string port host))) |
| 547 | (unless ((@@ (web uri) default-port?) scheme host-port) | 548 | (unless ((@@ (web uri) default-port?) scheme host-port) |
