Commit a70156b5 by Nicolas Capens Committed by Nicolas Capens

Use a relative URL for SwiftConfig.

This makes it easier to use a different address, in particular the port. Also add a missing header for std::max. Change-Id: I454dd6f4a92b5d8b97625e4cb50796e9f0940009 Reviewed-on: https://swiftshader-review.googlesource.com/16668Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 7e584e58
......@@ -24,6 +24,7 @@
#include <time.h>
#include <sys/stat.h>
#include <string.h>
#include <algorithm>
namespace sw
{
......@@ -247,7 +248,7 @@ namespace sw
html += "function request()\n";
html += "{\n";
html += "var xhr = new XMLHttpRequest();\n";
html += "xhr.open('POST', 'http://localhost:8080/swiftshader/profile', true);\n";
html += "xhr.open('POST', '/swiftshader/profile', true);\n";
html += "xhr.onreadystatechange = function()\n";
html += "{\n";
html += "if(xhr.readyState == 4 && xhr.status == 200)\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment