Commit d4b02762 authored by Jennifer Buehler's avatar Jennifer Buehler

Formatting for PR review

parent 7679b5fe
......@@ -4577,10 +4577,10 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
auto d = static_cast<int>(static_cast<unsigned>(fds.ymd.day()));
if (d < 10)
os << ' ';
os << d << ' '
os << d << ' '
<< make_time(duration_cast<seconds>(fds.tod.to_duration()))
<< ' ' << fds.ymd.year();
}
else // *fmt == 'x'
{
......
......@@ -100,7 +100,7 @@ namespace Uri {
bool has(const std::string& name) const;
// Return empty string or "?key1=value1&key2=value2" if query exist
std::string as_str() const;
void clear() {
params.clear();
}
......@@ -108,13 +108,13 @@ namespace Uri {
// \brief Return iterator to the beginning of the parameters map
std::unordered_map<std::string, std::string>::const_iterator
parameters_begin() const {
return params.begin();
return params.begin();
}
// \brief Return iterator to the end of the parameters map
std::unordered_map<std::string, std::string>::const_iterator
parameters_end() const {
return params.begin();
return params.begin();
}
// \brief returns all parameters given in the query
......
/*
Mathieu Stefani, 29 janvier 2016
Implementation of the Http client
*/
......@@ -381,7 +381,7 @@ Connection::connect(Address addr)
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
hints.ai_socktype = SOCK_STREAM; /* Stream socket */
hints.ai_flags = 0;
hints.ai_flags = 0;
hints.ai_protocol = 0;
auto host = addr.host();
......@@ -407,7 +407,7 @@ Connection::connect(Address addr)
fd = sfd;
transport_->asyncConnect(shared_from_this(), addr->ai_addr, addr->ai_addrlen)
.then([=]() {
.then([=]() {
socklen_t len = sizeof(saddr);
getsockname(sfd, (struct sockaddr *)&saddr, &len);
connectionState_ = Connected;
......
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