mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
http: Fix typo in proxy handling in 'write-request-line'.
Reported by Konrad Hinsen <konrad.hinsen@fastmail.net>
at <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00070.html>.
* module/web/http.scm (write-request-line): Move 'string-index' first in
'cond' clause. Fixes a regression introduced in
96b994b6f8
.
This commit is contained in:
parent
b322ac67d3
commit
7d0d9e2c25
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; HTTP messages
|
;;; HTTP messages
|
||||||
|
|
||||||
;; Copyright (C) 2010-2016 Free Software Foundation, Inc.
|
;; Copyright (C) 2010-2017 Free Software Foundation, Inc.
|
||||||
|
|
||||||
;; This library is free software; you can redistribute it and/or
|
;; This library is free software; you can redistribute it and/or
|
||||||
;; modify it under the terms of the GNU Lesser General Public
|
;; modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -1158,7 +1158,7 @@ three values: the method, the URI, and the version."
|
||||||
(put-symbol port scheme)
|
(put-symbol port scheme)
|
||||||
(put-string port "://")
|
(put-string port "://")
|
||||||
(cond
|
(cond
|
||||||
((host string-index #\:)
|
((string-index host #\:)
|
||||||
(put-char #\[ port)
|
(put-char #\[ port)
|
||||||
(put-string port host
|
(put-string port host
|
||||||
(put-char port #\])))
|
(put-char port #\])))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue