projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40387c8
)
http_file: unmatched HTTP requests are passed through
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 16 Dec 2011 12:00:59 +0000
(13:00 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 16 Dec 2011 12:00:59 +0000
(13:00 +0100)
The previous behavior was to return 404: not found. But that's
no good if we have filters after the http_file filter.
src/filter_http_file.cpp
patch
|
blob
|
history
diff --git
a/src/filter_http_file.cpp
b/src/filter_http_file.cpp
index
5e0d6c0
..
4c40c33
100644
(file)
--- a/
src/filter_http_file.cpp
+++ b/
src/filter_http_file.cpp
@@
-214,9
+214,7
@@
void yf::HttpFile::Rep::fetch_uri(mp::Session &session,
}
}
}
- mp::odr o;
- Z_GDU *gdu = o.create_HTTP_Response(session, req, 404);
- package.response() = gdu;
+ package.move();
}
void yf::HttpFile::process(mp::Package &package) const