3
bool Httpbuffer::setversion (char v) {
4
PROFILE("Httpbuffer::setversion");
6
// No first line? Nothing to do yet.
7
unsigned croff = charfind('\n');
11
// Find the HTTP/1.x header
12
unsigned stroff = strfind("HTTP/1.");
13
if (!stroff || stroff > croff)
16
// Poke in the new version.
17
return setchar(stroff + 7, v);