28 |
|
|
29 |
|
struct Environment |
30 |
|
{ |
31 |
< |
cse::String get(const cse::String& name) { try { return api::TheEnvironment.Get(name); } catch (ext::Exception) { return cse::String(); } } |
31 |
> |
cse::String get(const cse::String& name) |
32 |
> |
{ |
33 |
> |
try |
34 |
> |
{ |
35 |
> |
return api::TheEnvironment.Get(name); |
36 |
> |
} |
37 |
> |
catch (ext::Exception) |
38 |
> |
{ |
39 |
> |
return cse::String(); |
40 |
> |
} |
41 |
> |
} |
42 |
|
} env; |
43 |
|
|
44 |
|
int Main(const app::Options& options) |
76 |
|
<< env.get(_B("SERVER_SIGNATURE")) << _B("</body></html>\n"); |
77 |
|
} |
78 |
|
} |
79 |
< |
else api::Cout << _B("Location: http://computers.douglasthrift.net/bender.xml\r\n\r\n"); |
79 |
> |
else |
80 |
> |
api::Cout << _B("Location: http://computers.douglasthrift.net/bender.xml\r\n\r\n"); |
81 |
|
} |
82 |
|
|
83 |
|
void Bender::bend(const cse::String& path, const cse::String& agent) |