Request for new hdf var in HTTP tree

"homer242" <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Hi,

there are several headers which are preloaded into the HDF dataset by
the Clearsilver CGI kit, but the X-Requested-With header is not one of
them.

It could be nice to preload it also, as several Ajax libraries define
this header to "XMLHttpRequest", which makes it possible to check what
kind of request it is on the server side.

Ruby on Rails for example checks this header, and I believe it would
be nice to have it in ClearSilver too ;)

So I just added this line:

  {"HTTP_X_REQUESTED_WITH", "XRequestedWith"},


before:

  {NULL, NULL}

in cgi/cgi.c.

homer242.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.