diff options
author | agaliuzov <agaliuzov@luxoft.com> | 2016-05-17 01:15:38 -0700 |
---|---|---|
committer | agaliuzov <agaliuzov@luxoft.com> | 2016-05-17 01:15:38 -0700 |
commit | defe9c6497f76ec5c8b10b5123678174284d9b7d (patch) | |
tree | 3e23069204c73b3f3494be04f4afc47fbf2b17c8 /src/components/application_manager/src/commands/mobile/on_system_request_notification.cc | |
parent | ffa2733540a637a4737c6e5ee25ba6874bf99972 (diff) | |
download | sdl_core-defe9c6497f76ec5c8b10b5123678174284d9b7d.tar.gz |
Reformating merged from master code
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/on_system_request_notification.cc')
-rw-r--r-- | src/components/application_manager/src/commands/mobile/on_system_request_notification.cc | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc b/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc index ab03db1cec..f94e37407f 100644 --- a/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc +++ b/src/components/application_manager/src/commands/mobile/on_system_request_notification.cc @@ -119,23 +119,30 @@ void OnSystemRequestNotification::AddHeader(BinaryMessage& message) const { const std::string header = - "{" - " \"HTTPRequest\": {" - "\"headers\": {" - "\"ContentType\": \"application/json\"," - "\"ConnectTimeout\": " + std::string(timeout_str) + "," - "\"DoOutput\": true," - "\"DoInput\": true," - "\"UseCaches\": false," - "\"RequestMethod\": \"POST\"," - "\"ReadTimeout\":" + std::string(timeout_str) + "," - "\"InstanceFollowRedirects\": false," - "\"charset\": \"utf-8\"," - "\"Content_Length\": " + std::string(size_str) + - "}," - "\"body\": \"" + std::string(message.begin(), message.end()) + "\"" + "{" + " \"HTTPRequest\": {" + "\"headers\": {" + "\"ContentType\": \"application/json\"," + "\"ConnectTimeout\": " + + std::string(timeout_str) + + "," + "\"DoOutput\": true," + "\"DoInput\": true," + "\"UseCaches\": false," + "\"RequestMethod\": \"POST\"," + "\"ReadTimeout\":" + + std::string(timeout_str) + + "," + "\"InstanceFollowRedirects\": false," + "\"charset\": \"utf-8\"," + "\"Content_Length\": " + + std::string(size_str) + + "}," + "\"body\": \"" + + std::string(message.begin(), message.end()) + + "\"" "}" - "}"; + "}"; message.clear(); message.assign(header.begin(), header.end()); @@ -145,7 +152,7 @@ void OnSystemRequestNotification::AddHeader(BinaryMessage& message) const { } #endif -} //namespace mobile +} // namespace mobile } // namespace commands |