Skip to content

Commit

Permalink
Change the default service from 'http' to '80'
Browse files Browse the repository at this point in the history
I encountered a bug in Android NDK that show 'servname not supported for ai_socktype' when I set the servname to be 'http'
  • Loading branch information
Dung Viet Nguyen committed Aug 2, 2016
1 parent 28f51b6 commit f4bcfdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using namespace http;

Host::Host(const string& host) : service_("http")
Host::Host(const string& host) : service_("80")
{
parseInfo(host);
}
Expand All @@ -18,7 +18,6 @@ void Host::parseInfo(const string& host)
hostName_ = host.substr(0, colonPos );
}
else{
service_ = "http";
hostName_ = host;
}
}

0 comments on commit f4bcfdb

Please sign in to comment.