Fossil

Diff
Login

Diff

Differences From Artifact [e5d9bc3721]:

To Artifact [27a190c0dd]:


312
313
314
315
316
317
318
319

320
321
322
323
324

325
326
327
328
329
330
331
312
313
314
315
316
317
318

319

320
321
322

323
324
325
326
327
328
329
330







-
+
-



-
+







    if( zPath[0]==0 ) zPath = "/";
  }
  if( g.zBaseURL!=0 && fossil_strncmp(g.zBaseURL, "https:", 6)==0 ){
    zSecure = " secure;";
  }
  if( lifetime!=0 ){
    blob_appendf(&extraHeader,
       "Set-Cookie: %s=%t; Path=%s; max-age=%d; HttpOnly; SameSite=strict;"
       "Set-Cookie: %s=%t; Path=%s; max-age=%d; HttpOnly; %s\r\n",
       " %s\r\n",
       zName, lifetime>0 ? zValue : "null", zPath, lifetime, zSecure);
  }else{
    blob_appendf(&extraHeader,
       "Set-Cookie: %s=%t; Path=%s; HttpOnly; SameSite=strict; %s\r\n",
       "Set-Cookie: %s=%t; Path=%s; HttpOnly; %s\r\n",
       zName, zValue, zPath, zSecure);
  }
}


/*
** Return true if the response should be sent with Content-Encoding: gzip.