Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Server will now only try to send one response for per request#43

Open
mpmckenna8 wants to merge 1 commit into
hyperledger-archives:masterfrom
mpmckenna8:clean_server
Open

Server will now only try to send one response for per request#43
mpmckenna8 wants to merge 1 commit into
hyperledger-archives:masterfrom
mpmckenna8:clean_server

Conversation

@mpmckenna8

Copy link
Copy Markdown

Server logic in controller.js will no longer log or catch errors from trying to rewrite headers. Basically every response gets a res_msg which is a string onto which either errors are appended, or if succesful the tx code is added and sent, showing the client it worked. An alternative would be to use res.write to keep adding stuff to the response.

addresses #40

Signed-off-by: mpmckenna8 [email protected]

… and will no longer log or catch errors from trying to rewrite headers. Basically every response gets a res_msg which is a string onto which either errors are appended, or if succesful the tx code is added and sent, showing the client it worked. An alternative would be to use res.write to keep adding stuff to the response.

Signed-off-by: mpmckenna8 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant