-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The lock token is emitted as (urn:uuid:[GUID]), but later it is parsed as if it were (<[GUID]>).
In file WebDavExtensions.cs, the method GetLockTokenIfHeader should be changed as follows:
public static Guid? GetLockTokenIfHeader(this IHttpListenerRequest request)
{
if (!request.Headers.AllKeys.Contains("If"))
return null;
string ifHeaderValue = request.Headers["If"];
int posLastColon = ifHeaderValue.LastIndexOf(':');
int posUrnClose = ifHeaderValue.IndexOf('>');
string t = ifHeaderValue.Substring(posLastColon + 1, posUrnClose - posLastColon - 1);
return new Guid(t);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels