Diff for /Amaya/amaya/query.c between versions 1.314 and 1.315

version 1.314, 2002/10/28 15:18:26 version 1.315, 2002/11/05 16:28:45
Line 304  static  HTAtom *AHTGuessAtom_for (char * Line 304  static  HTAtom *AHTGuessAtom_for (char *
   Copies the headers in which the application is interested, doing    Copies the headers in which the application is interested, doing
   any in-between conversions as needed.    any in-between conversions as needed.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void HTTP_headers_set (HTRequest * request, HTResponse * response, void *context, int status)  void HTTP_headers_set (HTRequest *request, HTResponse *response,
                          void *context, int status)
 {  {
   AHTReqContext  *me;    AHTReqContext  *me;
   HTAtom         *tmp_atom = NULL;    HTAtom         *tmp_atom = NULL;
Line 1082  static int redirection_handler (HTReques Line 1083  static int redirection_handler (HTReques
 static int precondition_handler (HTRequest *request, HTResponse *response,  static int precondition_handler (HTRequest *request, HTResponse *response,
                                  void *context, int status)                                   void *context, int status)
 {  {
   AHTReqContext  *me = (AHTReqContext *) HTRequest_context (request);    AHTReqContext      *me = (AHTReqContext *) HTRequest_context (request);
   HTAlertCallback    *prompt = HTAlert_find (HT_A_CONFIRM);    HTAlertCallback    *prompt = HTAlert_find (HT_A_CONFIRM);
   ThotBool force_put;    ThotBool            force_put;
   
   if (!me)    if (!me)
     return HT_OK;               /* not an Amaya request */      return HT_OK;               /* not an Amaya request */
   
   if (prompt)    if (prompt)
        force_put = (*prompt) (request, HT_A_CONFIRM,  HT_MSG_RULES,      {
                               NULL, NULL, NULL);        if (me->method == METHOD_GET)
             /* @@@@ IV */
           force_put = (*prompt) (request, HT_A_CONFIRM, status,
                                  NULL, NULL, NULL);
         else
           force_put = (*prompt) (request, HT_A_CONFIRM, HT_MSG_RULES,
                                  NULL, NULL, NULL);
       }
   else    else
     force_put = NO;      force_put = NO;
       
Line 1105  static int precondition_handler (HTReque Line 1113  static int precondition_handler (HTReque
        * caused the 412 Precondition Failed status  *         * caused the 412 Precondition Failed status  *
        * code, otherwise we supose that the cause   *         * code, otherwise we supose that the cause   *
        * was an eventual If header.                 */         * was an eventual If header.                 */
       if (HTRequest_preconditions(me->request)!=HT_NO_MATCH)        if (HTRequest_preconditions(me->request) != HT_NO_MATCH)
           noIf = NO;            noIf = NO;
       else        else
           noIf = YES;                  noIf = YES;      
Line 1148  static int precondition_handler (HTReque Line 1156  static int precondition_handler (HTReque
 #ifdef DAV  #ifdef DAV
       /* MKP: add an If header (lock information) only         /* MKP: add an If header (lock information) only 
        * if there wasn't preconditions */         * if there wasn't preconditions */
       if (noIf!=YES) DAVAddIfHeader (me,HTAnchor_address(me->dest));        if (noIf != YES)
           DAVAddIfHeader (me,HTAnchor_address(me->dest));
 #endif /* DAV */  #endif /* DAV */
               
               

Removed from v.1.314  
changed lines
  Added in v.1.315


Webmaster