From 0bef191acd5a77544852e6a3daae2df05bd34a31 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Wed, 19 Jan 2022 11:20:45 +0000
Subject: [PATCH] Reformat and change send to x-www-form-urlencoded

---
 json.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/json.cpp b/json.cpp
index d486ddc..3e1ad07 100644
--- a/json.cpp
+++ b/json.cpp
@@ -392,10 +392,10 @@
 
 std::string RejectMessage::as_string()
 {
-	return "{\"type\": \"REJECT\", \"product\": \"" + this->product =
-	           "\", \"error\": \"" + this->error +
-	           "\", \"sequence\": " + std::to_string(this->sequence) +
-	           ", \"timestamp\": " + std::to_string(this->timestamp) + "}";
+	return "{\"type\": \"REJECT\", \"product\": \"" + this->product +
+	       "\", \"error\": \"" + this->error +
+	       "\", \"sequence\": " + std::to_string(this->sequence) +
+	       ", \"timestamp\": " + std::to_string(this->timestamp) + "}";
 }
 
 TradeMessage::TradeMessage(MessageTypes type, std::string product, double price,

--
Gitblit v1.9.3