add delete-headers to rfc822, that removes a header entry
This commit is contained in:
parent
542fea9f55
commit
c5c67ec837
|
@ -200,6 +200,14 @@
|
|||
(string-join (cadr entry)
|
||||
(:optional maybe-sep "\n")))))
|
||||
|
||||
(define (delete-headers headers name)
|
||||
(fold (lambda (entry rest)
|
||||
(if (eq? (car entry) name)
|
||||
rest
|
||||
(cons entry rest)))
|
||||
'()
|
||||
headers))
|
||||
|
||||
|
||||
|
||||
;;; Other desireable functionality
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
get-header-all
|
||||
get-header-lines
|
||||
get-header
|
||||
delete-headers
|
||||
))
|
||||
|
||||
(define-interface uri-interface
|
||||
|
|
Loading…
Reference in New Issue