Skip to content

Commit

Permalink
2006-12-20 Kevin Layer <layer@gemini.franz.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
layer committed Dec 20, 2006
1 parent b3339fc commit f194a14
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
@@ -1,3 +1,14 @@
2006-12-20 Kevin Layer <layer@gemini.franz.com>
1.2.48

Changes to handle "204 No Content" from Vebjorn Ljosa
<ljosa-franz-opensource@ljosa.com>. Handling 204 responses is
important because some web services (e.g., Amazon.com's "Simple
Storage Service," S3) use them.
* packages.cl: export *response-no-content*
* client.cl: handle *response-no-content*
* main.cl: define *response-no-content*

2006-07-24 John Foderaro <jkf@tiger.franz.com>
1.2.47
* the cookies added by set-cookie-header will now appear in
Expand Down
14 changes: 8 additions & 6 deletions client.cl
Expand Up @@ -24,7 +24,7 @@
;; Suite 330, Boston, MA 02111-1307 USA
;;
;;
;; $Id: client.cl,v 1.51 2006/06/08 00:42:43 jkf Exp $
;; $Id: client.cl,v 1.52 2006/12/20 20:51:21 layer Exp $

;; Description:
;; http client code.
Expand Down Expand Up @@ -283,11 +283,13 @@



(if* (and (null new-location)
; not called when redirecting
(if* (functionp skip-body)
then (funcall skip-body creq)
else skip-body))
(if* (or (and (null new-location)
; not called when redirecting
(if* (functionp skip-body)
then (funcall skip-body creq)
else skip-body))
(= (client-request-response-code creq)
#.(net.aserve::response-number *response-no-content*)))
then
(return-from do-http-request
(values
Expand Down
6 changes: 4 additions & 2 deletions main.cl
Expand Up @@ -24,7 +24,7 @@
;; Suite 330, Boston, MA 02111-1307 USA
;;
;;
;; $Id: main.cl,v 1.176 2006/07/24 18:54:34 jkf Exp $
;; $Id: main.cl,v 1.177 2006/12/20 20:51:21 layer Exp $

;; Description:
;; aserve's main loop
Expand All @@ -38,7 +38,7 @@

(in-package :net.aserve)

(defparameter *aserve-version* '(1 2 47))
(defparameter *aserve-version* '(1 2 48))

(eval-when (eval load)
(require :sock)
Expand Down Expand Up @@ -832,6 +832,7 @@ by keyword symbols and not by strings"
(defparameter *response-ok* (make-resp 200 "OK"))
(defparameter *response-created* (make-resp 201 "Created"))
(defparameter *response-accepted* (make-resp 202 "Accepted"))
(defparameter *response-no-content* (make-resp 204 "No Content"))
(defparameter *response-partial-content*
(make-resp 206 "Partial Content"))
(defparameter *response-moved-permanently* (make-resp 301 "Moved Permanently"))
Expand All @@ -854,6 +855,7 @@ by keyword symbols and not by strings"
*response-ok*
*response-created*
*response-accepted*
*response-no-content*
*response-moved-permanently*
*response-found*
*response-see-other*
Expand Down
3 changes: 2 additions & 1 deletion packages.cl
Expand Up @@ -38,7 +38,7 @@ v3: version 1.2.47."
;; Suite 330, Boston, MA 02111-1307 USA
;;
;;
;; $Id: packages.cl,v 1.14 2006/08/09 21:13:53 layer Exp $
;; $Id: packages.cl,v 1.15 2006/12/20 20:51:21 layer Exp $

;; Description:
;; packages and exports for AllegroServe
Expand Down Expand Up @@ -167,6 +167,7 @@ v3: version 1.2.47."
#:*http-response-timeout*
#:*mime-types*
#:*response-accepted*
#:*response-no-content*
#:*response-bad-request*
#:*response-continue*
#:*response-created*
Expand Down

0 comments on commit f194a14

Please sign in to comment.