mirror of
https://github.com/cesanta/slre.git
synced 2025-03-13 17:05:31 +00:00
Merge 841abe84c6
into 4e9adb59f3
This commit is contained in:
commit
ba048a91d0
@ -79,7 +79,7 @@ is no match. Negative return codes are as follows:
|
|||||||
struct slre_cap caps[4];
|
struct slre_cap caps[4];
|
||||||
|
|
||||||
if (slre_match("^\\s*(\\S+)\\s+(\\S+)\\s+HTTP/(\\d)\\.(\\d)",
|
if (slre_match("^\\s*(\\S+)\\s+(\\S+)\\s+HTTP/(\\d)\\.(\\d)",
|
||||||
request, strlen(request), caps, 4) > 0) {
|
request, strlen(request), caps, 4, NULL) > 0) {
|
||||||
printf("Method: [%.*s], URI: [%.*s]\n",
|
printf("Method: [%.*s], URI: [%.*s]\n",
|
||||||
caps[0].len, caps[0].ptr,
|
caps[0].len, caps[0].ptr,
|
||||||
caps[1].len, caps[1].ptr);
|
caps[1].len, caps[1].ptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user