all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35927: 26.2; url-http-end-of-headers sets to 1 when cache is working
@ 2019-05-27 14:47 Xu Chunyang
  2019-05-27 15:21 ` Basil L. Contovounesios
  2019-09-24  8:46 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Xu Chunyang @ 2019-05-27 14:47 UTC (permalink / raw)
  To: 35927

Today I enable URL cache via

    (setq url-automatic-caching t
          url-cache-expire-time (* 6 3600))

and I notice url-http-end-of-headers isn't the end of the headers when
cache is working. This breaks some of my code, I assume it is the end of
the header so I use (goto-char url-http-end-of-headers) before parsing
the response body. Is this expected or a bug?

    (with-current-buffer (url-retrieve-synchronously "http://example.com")
      (message "=> %S" url-http-end-of-headers))
    "=> #<marker at 347 in  *http example.com:80*>"
    
    (with-current-buffer (url-retrieve-synchronously "http://example.com")
      (message "=> %S" url-http-end-of-headers))
    "=> #<marker at 1 in  *http example.com:80*-325608>"
    
    (with-current-buffer (url-retrieve-synchronously "http://example.com")
      (message "=> %S" url-http-end-of-headers))
    "=> #<marker at 1 in  *http example.com:80*-887290>"





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-24  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-27 14:47 bug#35927: 26.2; url-http-end-of-headers sets to 1 when cache is working Xu Chunyang
2019-05-27 15:21 ` Basil L. Contovounesios
2019-05-27 15:43   ` xuchunyang
2019-09-24  8:46 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.