[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problem with HTTP requests



> Not sure how well formed that is or if lighttpd is being too picky.
> 
> Perhaps the extra blank lines?  Looks like in urlinstall.c:
> 
> 
>     if (ui->protocol == URL_METHOD_HTTP) {
>         char *arch = getProductArch();
>         char *name = getProductName();
>         int q;
> 
>         q = asprintf(&ehdrs, "User-Agent: anaconda/%s\r\n"
>                              "X-Anaconda-Architecture: %s\r\n"
>                              "X-Anaconda-System-Release: %s\r\n",
>                      VERSION, arch, name);
> 
> 
> arch and name must have some trailing newlines.

arch does, at least.  We have code in loader.c to strip trailing
whitespace from everything but the architecture.  I've updated it to
handle arch as well.

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]