diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-08-24 15:33:24 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-08-24 15:33:24 -0700 |
commit | 6418d02572d91b0e53b030642d997573181d8c6b (patch) | |
tree | 807b06d01a20521fdbcecdec4c592c2bf1c89981 | |
parent | 49fa30d495c0524a15ba86668f4fee12b9715089 (diff) | |
download | infinitytier-6418d02572d91b0e53b030642d997573181d8c6b.tar.gz infinitytier-6418d02572d91b0e53b030642d997573181d8c6b.zip |
Fix HTTP DELETE stupid bug.
-rw-r--r-- | service/OneService.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 2da72461..093d9ee8 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1728,9 +1728,10 @@ public: case TcpConnection::TCP_UNCATEGORIZED_INCOMING: switch(reinterpret_cast<uint8_t *>(data)[0]) { - // HTTP: GET, PUT, POST, HEAD + // HTTP: GET, PUT, POST, HEAD, DELETE case 'G': case 'P': + case 'D': case 'H': { // This is only allowed from IPs permitted to access the management // backplane, which is just 127.0.0.1/::1 unless otherwise configured. @@ -2313,7 +2314,7 @@ public: fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: %s" ZT_EOL_S,exc.what()); scode = 500; } catch ( ... ) { - fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: unknown exceptino" ZT_EOL_S); + fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: unknown exception" ZT_EOL_S); scode = 500; } |