From: Simon Krahnke Date: 2008-04-23T10:05:03+09:00 Subject: Re: Webrick override HTTPResponse::setup_header * andrey (2008-04-19) schrieb: > On 19 апр, 18:44, Daniel Finnie wrote: >> To clear out all of the existing headers you can use >> res.instance_variable_set("@header", {"header_name" => "header_value", >> "other_header_name" => "other_header_value"}) > > Yes, but after exiting do_Get() Webrick add self headers: If you want to change the Content-Type, use req['Content-Type'] = 'application/x-my-world' mfg, simon .... l