5 |
|
// $Id$ |
6 |
|
|
7 |
|
#include "Bender.hpp" |
8 |
< |
#include "Matcher.hpp" |
8 |
> |
#include "Matcher/Matcher.hpp" |
9 |
|
|
10 |
|
#include <menes-api/exename.hpp> |
11 |
|
#include <menes-api/files.hpp> |
12 |
|
#include <menes-api/process.hpp> |
13 |
|
#include <menes-app/simple.hpp> |
14 |
|
|
15 |
< |
struct |
15 |
> |
struct Environment |
16 |
|
{ |
17 |
|
ext::String get(const ext::String& name) |
18 |
|
{ |
109 |
|
if (!output.IsEmpty()) |
110 |
|
{ |
111 |
|
ext::String type("text/xml"); |
112 |
< |
Matcher matcher("http-equiv=\"Content-Type\" content=\"(.*)\""); |
112 |
> |
Matcher matcher("http-equiv=\"Content-Type\" content=\"(.*)\"", PCRE_MULTILINE); |
113 |
|
|
114 |
|
if (matcher == output) type = matcher[1]; |
115 |
|
|