mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Changed proxy-url to /up/ as ktr suggested.
This commit is contained in:
parent
75efba1425
commit
9ea9e347ea
30
web/up.aspx
30
web/up.aspx
@ -1,16 +1,16 @@
|
|||||||
<%@ Page Language="C#" %>
|
<%@ Page Language="C#" %>
|
||||||
<script runat="server" language="C#">
|
<script runat="server" language="C#">
|
||||||
public void Page_Load(object sender, EventArgs e)
|
public void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string path = Request.Params["path"];
|
string path = Request.Params["path"];
|
||||||
System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost:8123/" + path);
|
System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost:8123/up/" + path);
|
||||||
System.Net.WebResponse response = request.GetResponse();
|
System.Net.WebResponse response = request.GetResponse();
|
||||||
System.IO.Stream responseStream = response.GetResponseStream();
|
System.IO.Stream responseStream = response.GetResponseStream();
|
||||||
System.IO.StreamReader reader = new System.IO.StreamReader(responseStream);
|
System.IO.StreamReader reader = new System.IO.StreamReader(responseStream);
|
||||||
Response.ContentType = response.ContentType;
|
Response.ContentType = response.ContentType;
|
||||||
Response.Write(reader.ReadToEnd());
|
Response.Write(reader.ReadToEnd());
|
||||||
reader.Close();
|
reader.Close();
|
||||||
responseStream.Close();
|
responseStream.Close();
|
||||||
response.Close();
|
response.Close();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue
Block a user