Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit bfd2ba0

Browse files
committed
use json post body
1 parent f5b7974 commit bfd2ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ int CubeServer::get_status(GameStatus* stats_var) {
9090
int CubeServer::post(char *json) {
9191
int verification_status = this->_begin_client("/data");
9292
if(verification_status == VERIFICATION_OK) {
93-
http.addHeader("Content-Type", "application/x-www-form-urlencoded", false, true);
94-
int httpCode = http.POST(String("data=") + json + '&');
93+
http.addHeader("Content-Type", "application/json", false, true);
94+
int httpCode = http.POST(json);
9595
http.end();
9696
return httpCode;
9797
}

0 commit comments

Comments
 (0)