Code Review
/
cicn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5bae941
)
Adding additional check for MAC OS
30/7530/1
author
Mauro Sardara
<
[email protected]
>
Wed, 12 Jul 2017 12:59:11 +0000
(14:59 +0200)
committer
Mauro Sardara
<
[email protected]
>
Wed, 12 Jul 2017 12:59:11 +0000
(14:59 +0200)
Change-Id: I4defac2f9de374c5f54ad69eed032da492248003
Signed-off-by: Mauro Sardara <
[email protected]
>
icnet/http/icnet_http_request.cc
patch
|
blob
|
history
diff --git
a/icnet/http/icnet_http_request.cc
b/icnet/http/icnet_http_request.cc
index
cd0c512
..
f793e89
100644
(file)
--- a/
icnet/http/icnet_http_request.cc
+++ b/
icnet/http/icnet_http_request.cc
@@
-59,7
+59,10
@@
HTTPRequest::HTTPRequest(HTTPMethod method, std::string &url, HTTPHeaders &heade
stream << item.first << ": " << item.second << "\r\n";
}
stream << "\r\n";
- stream << payload.data();
+
+ if (payload.size() > 0) {
+ stream << payload.data();
+ }
request_string_ = stream.str();
}