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:
56a0463
)
http_file: only supports HTTP GET MP-523
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 21 Mar 2014 13:36:21 +0000
(14:36 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 21 Mar 2014 13:36:21 +0000
(14:36 +0100)
src/filter_http_file.cpp
patch
|
blob
|
history
diff --git
a/src/filter_http_file.cpp
b/src/filter_http_file.cpp
index
defac58
..
18bdd57
100644
(file)
--- a/
src/filter_http_file.cpp
+++ b/
src/filter_http_file.cpp
@@
-138,6
+138,13
@@
void yf::HttpFile::Rep::fetch_file(mp::Session &session,
{
mp::odr o(ODR_ENCODE);
+ if (strcmp(req->method, "GET"))
+ {
+ Z_GDU *gdu = o.create_HTTP_Response(session, req, 405);
+ package.response() = gdu;
+ return;
+ }
+
FILE *f = fopen(fname.c_str(), "rb");
if (!f)
{