diff --git a/server b/server index 50d18d97a24401e9f78fb1a0e258ee42375140d2..dc119606581d02d12d0d4d85f319def17591149d 100755 Binary files a/server and b/server differ diff --git a/site/LinuxTinyServer.cpp b/site/LinuxTinyServer.cpp index d669ed432772026f176532babbfda3ccb5727701..1bdbd29032458b66bc09f56eebfda810de6976c5 100644 --- a/site/LinuxTinyServer.cpp +++ b/site/LinuxTinyServer.cpp @@ -188,8 +188,10 @@ void *Talk( void *p ) if ( potentialSearch.compare(0,7, "/search") == 0) { + std::cout << "---Making a search GET---" << std::endl; potentialSearch = potentialSearch.erase(0, 8); + //TODO remove %20 from multi word strings std::cout << potentialSearch << std::endl; std::cout << "Returning results" << std::endl; diff --git a/site/get_search.js b/site/get_search.js index faf332b0e35efa3b15510dbafb087ba00f184dd0..c86ad143fa57f56b6fd3fa5363ced0fab412d64e 100644 --- a/site/get_search.js +++ b/site/get_search.js @@ -11,7 +11,8 @@ $(function () { function get_request(){ $query = $("#query").val(); - console.log("Making a query"); + console.log("Making a query: "); + console.log($query); $.ajax({ url: "/search", diff --git a/site/index.html b/site/index.html index 922f48291cfe487bcbc3035d059ca70b2e6d4bd4..25f1d8a5588b0f2f936f0b58a6c05037f2308fa5 100644 --- a/site/index.html +++ b/site/index.html @@ -10,7 +10,7 @@ <div class="container"> - + <h1> C++ lue Search Engine </h1> <div class="row">