Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6265 from abourget/patch-1
Browse files Browse the repository at this point in the history
cleos: fix broken -r,--header - was passing headers after the double CRLF
  • Loading branch information
spoonincode authored Nov 19, 2018
2 parents 7081293 + b42046e commit 6ed2feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/cleos/httpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ namespace eosio { namespace client { namespace http {
request_stream << "content-length: " << postjson.size() << "\r\n";
request_stream << "Accept: */*\r\n";
request_stream << "Connection: close\r\n";
request_stream << "\r\n";
// append more customized headers
std::vector<string>::iterator itr;
for (itr = cp.headers.begin(); itr != cp.headers.end(); itr++) {
request_stream << *itr << "\r\n";
}
request_stream << "\r\n";
request_stream << postjson;

if ( print_request ) {
Expand Down

0 comments on commit 6ed2feb

Please sign in to comment.