aboutsummaryrefslogtreecommitdiff
path: root/gptel-tools/web_fetch.el
diff options
context:
space:
mode:
Diffstat (limited to 'gptel-tools/web_fetch.el')
-rw-r--r--gptel-tools/web_fetch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gptel-tools/web_fetch.el b/gptel-tools/web_fetch.el
index 1f950a31..b2f80c5f 100644
--- a/gptel-tools/web_fetch.el
+++ b/gptel-tools/web_fetch.el
@@ -62,7 +62,7 @@ from the response status line, or nil when the line is unrecognized."
(let* ((status (when (re-search-forward
"^HTTP/[0-9.]+ \\([0-9]+\\)" (point-max) t)
(string-to-number (match-string 1))))
- (body-start (when (re-search-forward "\n\n" nil t)
+ (body-start (when (re-search-forward "\r?\n\r?\n" nil t)
(point))))
(cons status
(if body-start