comparison Core/RestApi/RestApi.cpp @ 1113:ba5c0908600c

Refactoring of HttpOutput ("Content-Length" header is now always sent)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Sep 2014 15:51:20 +0200
parents 0332e6e8c679
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1112:a119f9ae3640 1113:ba5c0908600c
190 190
191 HttpHandlerVisitor visitor(*this, wrappedOutput, method, headers, getArguments, postData); 191 HttpHandlerVisitor visitor(*this, wrappedOutput, method, headers, getArguments, postData);
192 192
193 if (root_.LookupResource(uri, visitor)) 193 if (root_.LookupResource(uri, visitor))
194 { 194 {
195 wrappedOutput.Finalize();
195 return true; 196 return true;
196 } 197 }
197 198
198 std::set<HttpMethod> methods; 199 std::set<HttpMethod> methods;
199 root_.GetAcceptedMethods(methods, uri); 200 root_.GetAcceptedMethods(methods, uri);