ApplyAppPathModifer and add a method to set the app path modifier.
* HttpRequest.cs: Add utility method for setting a request
header.
svn path=/trunk/mcs/; revision=20758
+2003-12-03 Jackson Harper <jackson@ximian.com>
+
+ * HttpResponse.cs: Actually apply an app path modifier in
+ ApplyAppPathModifer and add a method to set the app path modifier.
+ * HttpRequest.cs: Add utility method for setting a request header.
+
2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpApplication.cs: handle FileNotFound and DirectoryNotFound
internal void SetForm (HttpValueCollection form)\r
{\r
_oFormData = form;\r
- }\r
+ }
+
+ internal void SetHeader (string name, string value)
+ {
+ // this is just to make sure the headers are initialized
+ // we don't actually use this var.
+ NameValueCollection nadda = Headers;
+ _oHeaders.MakeReadWrite ();
+ _oHeaders [name] = value;
+ _oHeaders.MakeReadOnly ();
+ }
}\r
}
ArrayList fileDependencies;
CachedRawResponse cached_response;
ArrayList cached_headers;
-
+
+ string app_path_mod = null;
+
public HttpResponse (TextWriter output)
{
_bBuffering = true;
virtualPath = UrlUtils.Reduce (virtualPath);
}
+ if (app_path_mod != null && virtualPath.IndexOf (app_path_mod) > 0)
+ virtualPath = UrlUtils.Combine (app_path_mod, virtualPath);
+
return virtualPath;
}
+ internal void SetAppPathModifier (string app_path_mod)
+ {
+ this.app_path_mod = app_path_mod;
+ }
+
public bool Buffer
{
get {