guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-43-geec3a5


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-43-geec3a50
Date: Tue, 14 Feb 2012 16:32:39 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=eec3a50867086782a01286b742ee43f9fd47ecba

The branch, stable-2.0 has been updated
       via  eec3a50867086782a01286b742ee43f9fd47ecba (commit)
      from  7cc8ef6235f65db9642ad95b83bf90d043d5395b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eec3a50867086782a01286b742ee43f9fd47ecba
Author: Andy Wingo <address@hidden>
Date:   Tue Feb 14 17:32:16 2012 +0100

    web server: fix spurious warning
    
    * module/web/server.scm (sanitize-response): Quick fix to the
      304-has-no-body sanitizer.

-----------------------------------------------------------------------

Summary of changes:
 module/web/server.scm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/module/web/server.scm b/module/web/server.scm
index 5fc081c..42887e6 100644
--- a/module/web/server.scm
+++ b/module/web/server.scm
@@ -264,7 +264,9 @@ on the procedure being called at any particular time."
        (call-with-encoded-output-string charset body))))
    ((not (bytevector? body))
     (error "unexpected body type"))
-   ((response-must-not-include-body? response)
+   ((and (response-must-not-include-body? response)
+         body
+         (not (zero? (bytevector-length body))))
     (error "response with this status code must not include body" response))
    (else
     ;; check length; assert type; add other required fields?


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]