Skip to content
Snippets Groups Projects
Commit bdefbc7d authored by jsclose's avatar jsclose
Browse files

fixed input for search feature

parent ad0049b5
No related branches found
No related tags found
1 merge request!9Website
No preview for this file type
......@@ -183,20 +183,15 @@ void *Talk( void *p )
{
std::cout << "Requested url = " << fullUrl << std::endl;
std::string search = "/search";
bool isSearch = true;
for ( int i = 0; i < search.size( ); i++ )
{
if ( potentialSearch[ i ] != search[ i ] )
isSearch = false;
break;
}
if ( isSearch )
{
if ( potentialSearch.compare(0,7, "/search") == 0)
{
std::cout << "---Making a search GET---" << std::endl;
potentialSearch = potentialSearch.erase(0, 8);
std::cout << potentialSearch << std::endl;
}
else
{
......
File moved
......@@ -2,7 +2,7 @@
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="search.js"></script>
<script src="get_search.js"></script>
</head>
<!------ Include the above in your HEAD tag ---------->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment