Skip to content

Commit

Permalink
Fix: (plz--skip-redirect-headers)
Browse files Browse the repository at this point in the history
Thanks to Phil Sainty's (@phil-s) comment:
<alphapapa/ement.el#24 (comment)>.
  • Loading branch information
alphapapa committed May 30, 2023
1 parent a0a6d62 commit 4114e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plz.el
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ node `(elisp) Sentinels'). Kills the buffer before returning."
(member (string-to-number (match-string 2)) '(301 302 307 308)))
;; Skip redirect headers ("--dump-header" forces redirect headers to be included
;; even when used with "--location").
(unless (re-search-forward "\r\n\r\n" nil t)
(signal 'plz-http-error '("plz--response: End of redirect headers not found")))))
(or (re-search-forward "\r\n\r\n" nil t)
(signal 'plz-http-error '("plz--response: End of redirect headers not found")))))

(cl-defun plz--response (&key (decode-p t))
"Return response structure for HTTP response in current buffer.
Expand Down

0 comments on commit 4114e23

Please sign in to comment.