Index: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc |
diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc |
index 6952b0181dab5e0ea9697452e2b88cfcecf57c3b..b3f586855e8301395f6dbd9a04213de69f432e19 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc |
+++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc |
@@ -14,6 +14,7 @@ |
#include "nacl_io/httpfs/http_fs.h" |
#include "nacl_io/kernel_handle.h" |
#include "nacl_io/osinttypes.h" |
+#include "nacl_io/statuscode.h" |
#if defined(WIN32) |
#define snprintf _snprintf |
@@ -27,11 +28,6 @@ namespace { |
// request, we need to read all of the data up to the start of our partial |
// request into a dummy buffer. This is the maximum size of that buffer. |
const int MAX_READ_BUFFER_SIZE = 64 * 1024; |
-const int32_t STATUSCODE_OK = 200; |
-const int32_t STATUSCODE_PARTIAL_CONTENT = 206; |
-const int32_t STATUSCODE_FORBIDDEN = 403; |
-const int32_t STATUSCODE_NOT_FOUND = 404; |
-const int32_t STATUSCODE_REQUESTED_RANGE_NOT_SATISFIABLE = 416; |
StringMap_t ParseHeaders(const char* headers, int32_t headers_length) { |
enum State { |