Skip to content

Commit 70f55ad

Browse files
committed
upload stuff to codecov to try that out; forgot another version bump
1 parent 4034494 commit 70f55ad

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ script:
3333

3434
after_success:
3535
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then coveralls -t DcluU4eNb0fYJrVslE8kUyEOnl9sMMrSE --exclude dependencies --exclude src --exclude include/asio --exclude include/asio.hpp --exclude include/ef.gy --gcov-options '\-lp'; fi
36+
- bash <(curl -s https://codecov.io/bash)

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-include ef.gy/base.mk include/ef.gy/base.mk
22

33
NAME:=cxxhttp
4-
VERSION:=2
4+
VERSION:=3
55

66
CXXFLAGS+=-pedantic -Wall

src/fetch.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ static option outFD(
3737
},
3838
"send output to the given file descriptor; the descriptor must be open");
3939

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");
5757

5858
static option TCP(
5959
"http://([^@:/]+)(:[0-9]+|:stdio)?(/.*)",

0 commit comments

Comments
 (0)