Bug 30298 - Недостаточно правильно осуществляется подстановка %H в X-Alterator-URI
: Недостаточно правильно осуществляется подстановка %H в X-Alterator-URI
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/alterator-fbi)
: unstable
: all Linux
: P3 normal
Assigned To:
:
: http://git.altlinux.org/people/mano...
:
:
:
  Show dependency tree
 
Reported: 2014-09-09 17:32 by
Modified: 2014-09-09 18:58 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2014-09-09 17:32:31
X-Alterator-URI=https://%H:8000/help возвращает ""
X-Alterator-URI=https://%H/help возвращает "https://10.1.1.228/help"

Предлагаю переписать (format-uri) так:
(define (format-uri uri)
  (regexp-substitute 
    #f 
    (string-match "%H" uri) 
    'pre 
    (message-header (ahttpd-session-ref 'ahttpd-request) "host") 
    'post))
------- Comment #1 From 2014-09-09 18:58:14 -------
alterator-fbi-5.30-alt1 -> sisyphus:

* Tue Sep 09 2014 Andrey Cherepanov <cas@altlinux> 5.30-alt1
- Replace %H in any place of X-Alterator-URI for support different port
  in URI (ALT #30298)