- renamed USERHOST:xxx to USERHOST-xxx
- renamed HTTP-URL:xxx to HTTP-URL-xxx
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
(nph? (string-prefix? "nph-" prog)) ; PROG starts with "nph-" ?
|
||||
; why did we had (string-suffix? "-nph" prog) here?
|
||||
|
||||
(search (http-url:search (request-url req))) ; Compute the
|
||||
(search (http-url-search (request-url req))) ; Compute the
|
||||
(argv (if (and search (not (string-index search #\=))) ; argv list.
|
||||
(split-and-decode-search-spec search)
|
||||
'()))
|
||||
@@ -181,7 +181,7 @@
|
||||
(path-translated (path-list->file-name path-info bin-dir))
|
||||
|
||||
;; Compute the $SCRIPT_PATH string.
|
||||
(url-path (http-url:path (request-url req)))
|
||||
(url-path (http-url-path (request-url req)))
|
||||
(script-path (take (- (length url-path) (length path-suffix))
|
||||
url-path))
|
||||
(script-name (uri-path-list->path script-path)))
|
||||
@@ -208,7 +208,7 @@
|
||||
|
||||
,@request-invariant-cgi-env ; Stuff that never changes (see cgi-handler).
|
||||
|
||||
,@(cond ((http-url:search (request-url req)) =>
|
||||
,@(cond ((http-url-search (request-url req)) =>
|
||||
(lambda (srch) `(("QUERY_STRING" . ,srch))))
|
||||
(else '()))
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@
|
||||
(let ((initial-req (parse-http-request sock options)))
|
||||
(let redirect-loop ((req initial-req))
|
||||
(let ((response ((httpd-options-request-handler options)
|
||||
(http-url:path (request-url req))
|
||||
(http-url-path (request-url req))
|
||||
req)))
|
||||
(if (eq? (response-code response)
|
||||
http-status/redirect)
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
;;; ROOTED-FILE-OR-DIRECTORY-HANDLER for examples on how to feed this.
|
||||
|
||||
(define (make-rooted-file-path-response root file-path file-serve-response req)
|
||||
(if (http-url:search (request-url req))
|
||||
(if (http-url-search (request-url req))
|
||||
(make-http-error-response http-status/bad-request req
|
||||
"Indexed search not provided for this URL.")
|
||||
(cond ((dotdot-check root file-path) =>
|
||||
|
||||
@@ -117,12 +117,12 @@
|
||||
((list? parse-info) ; it's an info path
|
||||
(lambda (url)
|
||||
(values parse-info
|
||||
(unescape-uri (http-url:search url)))))
|
||||
(unescape-uri (http-url-search url)))))
|
||||
(else
|
||||
(let ((info-path ((infix-splitter ":") (getenv "INFOPATH"))))
|
||||
(lambda (url)
|
||||
(values info-path
|
||||
(unescape-uri (http-url:search url))))))))
|
||||
(unescape-uri (http-url-search url))))))))
|
||||
(make-reference
|
||||
(cond
|
||||
((procedure? reference) reference)
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
(format-internet-host-address host-address))
|
||||
(request-method req) ; request method
|
||||
(uri-path-list->path
|
||||
(http-url:path (request-url req))) ; requested file
|
||||
(http-url-path (request-url req))) ; requested file
|
||||
(version->string (request-version req)) ; protocol version
|
||||
status-code
|
||||
23 ; filesize (unknown)
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
((list? finder)
|
||||
(lambda (url)
|
||||
(values finder
|
||||
(unescape-uri (http-url:search url))
|
||||
(unescape-uri (http-url-search url))
|
||||
'())))
|
||||
(else
|
||||
(let ((man-path ((infix-splitter ":") (getenv "MANPATH"))))
|
||||
(lambda (url)
|
||||
(values man-path
|
||||
(unescape-uri (http-url:search url))
|
||||
(unescape-uri (http-url-search url))
|
||||
'()))))))
|
||||
(reference-template
|
||||
(cond
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
(let ((request-method (request-method request)))
|
||||
(cond
|
||||
((string=? request-method "GET")
|
||||
(form-query (http-url:search (request-url request))))
|
||||
(form-query (http-url-search (request-url request))))
|
||||
((string=? request-method "POST")
|
||||
(or (cached-bindings request)
|
||||
(let* ((content-length (get-content-length (request-headers request)))
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
(p (URL "/" "Return to main menu") (br)
|
||||
(URL "add.scm" "Start new calculation."))))))))
|
||||
(let* ((bindings (form-query
|
||||
(http-url:search (request-url result))))
|
||||
(http-url-search (request-url result))))
|
||||
(number (string->number
|
||||
(extract-single-binding "number" bindings))))
|
||||
(if number
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
(URL "add2.scm" "Start new calculation."))))))))
|
||||
(if result
|
||||
(or (input-field-value number-input-field
|
||||
(form-query (http-url:search (request:url result))))
|
||||
(form-query (http-url-search (request:url result))))
|
||||
(get-number input-text "Please enter a valid number."))
|
||||
(get-number input-text "Please enter a number."))))
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
,(make-submit-button))
|
||||
(hr)
|
||||
(p (URL "/" "Return to main menu.")))))))
|
||||
(bindings (form-query (http-url:search (request-url req)))))
|
||||
(bindings (form-query (http-url-search (request-url req)))))
|
||||
(input-field-value byte-input-fields bindings)))
|
||||
|
||||
(define (main req)
|
||||
|
||||
Reference in New Issue
Block a user