Merge "Fix set cookie_name to None if not in PUT content"
This commit is contained in:
commit
cb4261444d
@ -36,7 +36,7 @@ class SessionPersistencePOST(base.BaseType):
|
||||
class SessionPersistencePUT(base.BaseType):
|
||||
"""Defines attributes that are acceptable of a PUT request."""
|
||||
type = wtypes.wsattr(wtypes.Enum(str, *constants.SUPPORTED_SP_TYPES))
|
||||
cookie_name = wtypes.wsattr(wtypes.text)
|
||||
cookie_name = wtypes.wsattr(wtypes.text, default=None)
|
||||
|
||||
|
||||
class PoolResponse(base.BaseType):
|
||||
|
@ -36,7 +36,7 @@ class SessionPersistencePOST(types.BaseType):
|
||||
class SessionPersistencePUT(types.BaseType):
|
||||
"""Defines attributes that are acceptable of a PUT request."""
|
||||
type = wtypes.wsattr(wtypes.Enum(str, *constants.SUPPORTED_SP_TYPES))
|
||||
cookie_name = wtypes.wsattr(wtypes.text)
|
||||
cookie_name = wtypes.wsattr(wtypes.text, default=None)
|
||||
|
||||
|
||||
class BasePoolType(types.BaseType):
|
||||
|
Loading…
Reference in New Issue
Block a user