@@ -37,23 +37,23 @@ static option outFD(
37
37
},
38
38
" send output to the given file descriptor; the descriptor must be open" );
39
39
40
- static option UNIX (
41
- " -{0,2}http:unix:(.+):(.+) " ,
42
- []( std::smatch &m) -> bool {
43
- const std::string target = m[1 ];
44
- const std::string path = m[ 2 ];
45
- call<unix>(path, {{ " Host " , target}})
46
- . success ([](sessionData & sess) {
47
- write (output, sess. content . c_str (), sess.content .size ());
48
- })
49
- .failure ([target, path](sessionData &sess) {
50
- std::cerr << " Failed to retrieve URL: " << path
51
- << " from socket: " << target << " \n " ;
52
- });
53
- return true ;
54
- },
55
- " fetch resource[2] via HTTP from unix socket[1]; error "
56
- " output is on stderr" );
40
+ static option UNIX (" -{0,2}http:unix:(.+):(.+) " ,
41
+ [](std::smatch &m) -> bool {
42
+ const std::string target = m[ 1 ];
43
+ const std::string path = m[2 ];
44
+ call<unix>( path, {{ " Host " , target}})
45
+ . success ([](sessionData &sess) {
46
+ write (output, sess. content . c_str (),
47
+ sess.content .size ());
48
+ })
49
+ .failure ([target, path](sessionData &sess) {
50
+ std::cerr << " Failed to retrieve URL: " << path
51
+ << " from socket: " << target << " \n " ;
52
+ });
53
+ return true ;
54
+ },
55
+ " fetch resource[2] via HTTP from unix socket[1]; error "
56
+ " output is on stderr" );
57
57
58
58
static option TCP (
59
59
" http://([^@:/]+)(:[0-9]+|:stdio)?(/.*)" ,
0 commit comments