yillkid / iota-swarm-node

IOTA Swarm node Reference Implementation
Other
12 stars 9 forks source link

Fix response type error #26

Closed ender503 closed 6 years ago

ender503 commented 6 years ago

When the client is requesting the root path of the server, it won't get the response message, due to the internal server error, it is caused by the response with wrong data type, the response data only accept the "string".

To fix this problem, convert the data to the "string" type.

jserv commented 6 years ago

We have to ensure consistent string encoding. Can you write test cases about that?

jserv commented 6 years ago

@ender503, ping?

ender503 commented 6 years ago

@jserv, Since we are using the HTTPServer and BaseHTTPRequestHandler, it is not easy to write the test cases.