Try to make wsd.c handle Connection: more correctly.