Importing Pterodactyl Gnus v0.51.
[elisp/gnus.git-] / lisp / nngateway.el
index c580ac5..51e20ad 100644 (file)
@@ -55,7 +55,7 @@ parameter -- the gateway address.")
            (nngateway-open-server server))
     ;; Rewrite the header.
     (let ((buf (current-buffer)))
-      (nnheader-temp-write nil
+      (with-temp-buffer
        (insert-buffer-substring buf)
        (message-narrow-to-head)
        (funcall nngateway-header-transformation nngateway-address)