Mercurial > hg > xemacs-beta
diff lisp/w3/url-http.el @ 82:6a378aca36af r20-0b91
Import from CVS: tag r20-0b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:07:36 +0200 |
parents | 9ee227acff29 |
children | 364816949b59 |
line wrap: on
line diff
--- a/lisp/w3/url-http.el Mon Aug 13 09:06:45 2007 +0200 +++ b/lisp/w3/url-http.el Mon Aug 13 09:07:36 2007 +0200 @@ -1,12 +1,12 @@ ;;; url-http.el --- HTTP Uniform Resource Locator retrieval code ;; Author: wmperry -;; Created: 1996/12/18 00:38:45 -;; Version: 1.7 +;; Created: 1997/01/15 15:55:48 +;; Version: 1.10 ;; Keywords: comm, data, processes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Copyright (c) 1993-1996 by William M. Perry (wmperry@cs.indiana.edu) -;;; Copyright (c) 1996 Free Software Foundation, Inc. +;;; Copyright (c) 1996, 1997 Free Software Foundation, Inc. ;;; ;;; This file is not part of GNU Emacs, but the same permissions apply. ;;; @@ -133,9 +133,9 @@ (let ((url-basic-auth-storage url-proxy-basic-authentication)) (url-get-authentication url nil 'any nil)))) - (host (if (boundp 'proxy-info) - (url-host (url-generic-parse-url proxy-info)) - url-current-server)) + (host (or (and (boundp 'proxy-info) + (url-host (url-generic-parse-url proxy-info))) + url-current-server)) (auth (if (cdr-safe (assoc "Authorization" url-request-extra-headers)) nil (url-get-authentication (or @@ -601,12 +601,9 @@ (process-kill-without-query process) (process-send-string process request) (url-lazy-message "Request sent, waiting for response...") - (if url-show-http2-transfer - (progn - (make-local-variable 'after-change-functions) - (setq url-current-content-length nil) - (add-hook 'after-change-functions - 'url-after-change-function))) + (setq url-current-content-length nil) + (make-local-variable 'after-change-functions) + (add-hook 'after-change-functions 'url-after-change-function) (if url-be-asynchronous (set-process-sentinel process 'url-sentinel) (unwind-protect