Esempio n. 1
0
        public static RavenJObject FilterHeadersAttachment(this HttpHeaders self)
        {
            var filterHeaders = self.FilterHeadersToObject();

            string contentType = self.GetFirstValue("Content-Type");

            if (contentType != null)
            {
                filterHeaders["Content-Type"] = contentType;
            }

            return(filterHeaders);
        }
Esempio n. 2
0
 protected virtual RavenJObject GetFilteredMetadataFromHeaders(HttpHeaders headers)
 {
     return(headers.FilterHeadersToObject());
 }