Closed besedad closed 5 years ago
Thank you @besedad for your contribution.
Can you please add a test for this new functionality? In translate_test.go
for sure, and ideally also in crosscoap_test.go
to verify end-to-end.
Thank you @dubek for such prompt response. I've added the tests.
Merged. Thanks @besedad for your contribution.
This pull request changes behavior of crosscoap so that value of option
coap.URIHost
gets assigned to outgoing*http.Request
. This change allows to run crosscoap as a single instance while being able to forward requests to multiple backends.