Browse Source

Use method full name.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
5d9b73ba4e
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      engine/vm.c

+ 6
- 6
engine/vm.c View File

@ -42,11 +42,11 @@ struct SyhttpHeader {
/*
* Supported HTTP methods.
*/
#define HTTP_METHOD_GET 1 /* GET */
#define HTTP_METHOD_HEAD 2 /* HEAD */
#define HTTP_METHOD_POST 3 /* POST */
#define HTTP_METHOD_PUT 4 /* PUT */
#define HTTP_METHOD_OTHR 5 /* Other HTTP methods [i.e: DELETE,TRACE,OPTIONS...]*/
#define HTTP_METHOD_GET 1 /* GET */
#define HTTP_METHOD_HEAD 2 /* HEAD */
#define HTTP_METHOD_POST 3 /* POST */
#define HTTP_METHOD_PUT 4 /* PUT */
#define HTTP_METHOD_OTHER 5 /* Other HTTP methods [i.e: DELETE,TRACE,OPTIONS...]*/
/*
* Supported HTTP protocol version.
*/
@ -10649,7 +10649,7 @@ static sxi32 VmHttpProcessFirstLine(
while(zIn < zEnd && !SyisSpace(zIn[0])) {
zIn++;
}
*pMethod = HTTP_METHOD_OTHR;
*pMethod = HTTP_METHOD_OTHER;
if(zIn > zPtr) {
sxu32 i;
nLen = (sxu32)(zIn - zPtr);

Loading…
Cancel
Save