Fossil

Diff
Login

Diff

Differences From Artifact [c2fbc76c58]:

To Artifact [e5d9bc3721]:


312
313
314
315
316
317
318
319
320


321
322
323
324

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


319
320
321
322
323

324

325
326
327
328
329
330
331







-
-
+
+



-
+
-







    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; "
       "%s Version=1\r\n",
       "Set-Cookie: %s=%t; Path=%s; max-age=%d; HttpOnly; SameSite=strict;"
       " %s\r\n",
       zName, lifetime>0 ? zValue : "null", zPath, lifetime, zSecure);
  }else{
    blob_appendf(&extraHeader,
       "Set-Cookie: %s=%t; Path=%s; HttpOnly; "
       "Set-Cookie: %s=%t; Path=%s; HttpOnly; SameSite=strict; %s\r\n",
       "%s Version=1\r\n",
       zName, zValue, zPath, zSecure);
  }
}


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