web/http_headers.py
changeset 10593 03ce3d24db87
parent 10590 7629902e7554
child 10594 6a55853f14c9
equal deleted inserted replaced
10592:dfa1dcf4d7f1 10593:03ce3d24db87
   764         # Optional list argument
   764         # Optional list argument
   765         if v is not None:
   765         if v is not None:
   766             v = [field.strip().lower() for field in v.split(',')]
   766             v = [field.strip().lower() for field in v.split(',')]
   767     return k, v
   767     return k, v
   768 
   768 
   769 def generateCacheControl((k, v)):
   769 def generateCacheControl(args):
       
   770     k, v = args
   770     if v is None:
   771     if v is None:
   771         return str(k)
   772         return str(k)
   772     else:
   773     else:
   773         if k == 'no-cache' or k == 'private':
   774         if k == 'no-cache' or k == 'private':
   774             # quoted list of values
   775             # quoted list of values