From 6bdb2e284886c5244f17d83e0b63add2546c0ca6 Mon Sep 17 00:00:00 2001 From: "Teravus Ovares (Dan Olivares)" Date: Tue, 25 Aug 2009 16:12:03 -0400 Subject: [PATCH] Patch from jhurliman to HttpServer Fixes cookie handling and header name casing in HttpServer Currently, cookies are never being processed on incoming HTTP requests. This patch makes sure cookies are parsed and inserted into IHttpRequest.Cookies, and fixes incoming headers to always have lower-case names. http://opensimulator.org/mantis/view.php?id=4052 --- bin/HttpServer_OpenSim.dll | Bin 113664 -> 114176 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/bin/HttpServer_OpenSim.dll b/bin/HttpServer_OpenSim.dll index 54142762af1882a34755f73301d794add78990c8..06bdf60baecdabd2056fc86626c50fb39e01fca5 100644 GIT binary patch delta 7075 zcmX}x3tUvi{s8d#{brXvyNkqQ7j}`yA|N23CO*IiqC9+Cilmf=1S+KR&{aUO1wnkE zCLCo&(ZcMZW@@XTW~GUmsaH+xYS&7;iRG>9wZE3$toxrcXIwv@Jv-m?`|Zq}vomwX zrRtGK)f0~mt9lGg+c=hpe>Vw+89^eX4G8g2PbPOZ?Cwqbe+Lc!h=l*h08!eMD?oyr zw+=y^oDETiw1X_$#Pg9%;T!I}<1Uac}?kyN;9%G{=wXlTn#F*XUYY zymY|09uI#$x?Dc8>rv1ub4K6kAAI*~pM;J5-h#2NOIVWO>DO07_Oi|;5#l3{ACn*( zXLXMZ#HEV~(G(v?;;~?fj+7LiC&aLD9-~1Gc@$rk7mXQWB*d?;mUOWS2D^@o*@`ek z&KmE8q4F=|^I({3(u7ceWLN3L8i3*Q!{-J;iX8uZER1kvKi>{8QudiV7gFVAlXDtXQ~4g2s}`#zZFs#tUdAlo&eEDzvC`9S$ac*#{= zF;@fAUB4`29h)J~cl;AxmM2xokR#u&x&t#^7pgx6$d%XCl))>qwl)XySlA?2)PBmU zO`SJW?sLKm!k4&YVSq;-7&=E~LUUD7=EO=9tvL|(VPpIr3%Y?$x5`ubdiBG-sU z)~j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