discovery: fix gateway timeout

put the header before the body?