set some http headers in the response (fix #251)