Mercurial > hg > orthanc
comparison Core/HttpServer/FilesystemHttpHandler.cpp @ 473:c9a5d72f8481
changing the namespace of HTTP enumerations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 17:22:13 +0200 |
parents | bdd72233b105 |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
472:722b56b99093 | 473:c9a5d72f8481 |
---|---|
125 } | 125 } |
126 | 126 |
127 | 127 |
128 void FilesystemHttpHandler::Handle( | 128 void FilesystemHttpHandler::Handle( |
129 HttpOutput& output, | 129 HttpOutput& output, |
130 Orthanc_HttpMethod method, | 130 HttpMethod method, |
131 const UriComponents& uri, | 131 const UriComponents& uri, |
132 const Arguments& headers, | 132 const Arguments& headers, |
133 const Arguments& arguments, | 133 const Arguments& arguments, |
134 const std::string&) | 134 const std::string&) |
135 { | 135 { |
136 if (method != Orthanc_HttpMethod_Get) | 136 if (method != HttpMethod_Get) |
137 { | 137 { |
138 output.SendMethodNotAllowedError("GET"); | 138 output.SendMethodNotAllowedError("GET"); |
139 return; | 139 return; |
140 } | 140 } |
141 | 141 |
159 { | 159 { |
160 OutputDirectoryContent(output, uri, p); | 160 OutputDirectoryContent(output, uri, p); |
161 } | 161 } |
162 else | 162 else |
163 { | 163 { |
164 output.SendHeader(Orthanc_HttpStatus_404_NotFound); | 164 output.SendHeader(HttpStatus_404_NotFound); |
165 } | 165 } |
166 } | 166 } |
167 } | 167 } |